diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-06-12 17:19:47 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-06-12 17:19:47 +0200 |
commit | 1d43458c148f9532a81b92ee3a247da4f1c0b7ad (patch) | |
tree | 27b14f89d7f0bb7e655c21e1961fbd20e1dc0afd /activerecord/test/cases/adapters/mysql/sp_test.rb | |
parent | 98cacae101e73b24cc4fd11fb8e1daf3fdc6de45 (diff) | |
parent | 9946788775437513c3489b7d7b2b01fcda62d5fb (diff) | |
download | rails-1d43458c148f9532a81b92ee3a247da4f1c0b7ad.tar.gz rails-1d43458c148f9532a81b92ee3a247da4f1c0b7ad.tar.bz2 rails-1d43458c148f9532a81b92ee3a247da4f1c0b7ad.zip |
Merge pull request #20480 from senny/test_runner
use our own runner for Rails framework components `bin/test`
Diffstat (limited to 'activerecord/test/cases/adapters/mysql/sp_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/mysql/sp_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql/sp_test.rb b/activerecord/test/cases/adapters/mysql/sp_test.rb index 3ca2917ca4..a3d5110032 100644 --- a/activerecord/test/cases/adapters/mysql/sp_test.rb +++ b/activerecord/test/cases/adapters/mysql/sp_test.rb @@ -1,11 +1,11 @@ require "cases/helper" require 'models/topic' -class StoredProcedureTest < ActiveRecord::TestCase +class StoredProcedureTest < ActiveRecord::MysqlTestCase fixtures :topics # Test that MySQL allows multiple results for stored procedures - if Mysql.const_defined?(:CLIENT_MULTI_RESULTS) + if defined?(Mysql) && Mysql.const_defined?(:CLIENT_MULTI_RESULTS) def test_multi_results_from_find_by_sql topics = Topic.find_by_sql 'CALL topics();' assert_equal 1, topics.size |