diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-28 23:08:10 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-28 23:08:40 +0000 |
commit | f06074f365932f47e108004b93f05b259cf0c5db (patch) | |
tree | 77a72b8077ce790ecf90b47c086cf8981f901ccc /activerecord/test/cases/adapters/mysql2 | |
parent | e99987bc309a276bb6aea700ff184194768a6ee4 (diff) | |
download | rails-f06074f365932f47e108004b93f05b259cf0c5db.tar.gz rails-f06074f365932f47e108004b93f05b259cf0c5db.tar.bz2 rails-f06074f365932f47e108004b93f05b259cf0c5db.zip |
Fix CI
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/connection_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/connection_test.rb b/activerecord/test/cases/adapters/mysql2/connection_test.rb index 26091c713b..8e2b9ca9a5 100644 --- a/activerecord/test/cases/adapters/mysql2/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql2/connection_test.rb @@ -3,7 +3,7 @@ require "cases/helper" class MysqlConnectionTest < ActiveRecord::TestCase def setup super - @connection = ActiveRecord::Base.connection + @connection = ActiveRecord::Model.connection end def test_no_automatic_reconnection_after_timeout @@ -32,11 +32,11 @@ class MysqlConnectionTest < ActiveRecord::TestCase private def run_without_connection - original_connection = ActiveRecord::Base.remove_connection + original_connection = ActiveRecord::Model.remove_connection begin yield original_connection ensure - ActiveRecord::Base.establish_connection(original_connection) + ActiveRecord::Model.establish_connection(original_connection) end end end |