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/primary_keys_test.rb | |
parent | e99987bc309a276bb6aea700ff184194768a6ee4 (diff) | |
download | rails-f06074f365932f47e108004b93f05b259cf0c5db.tar.gz rails-f06074f365932f47e108004b93f05b259cf0c5db.tar.bz2 rails-f06074f365932f47e108004b93f05b259cf0c5db.zip |
Fix CI
Diffstat (limited to 'activerecord/test/cases/primary_keys_test.rb')
-rw-r--r-- | activerecord/test/cases/primary_keys_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/primary_keys_test.rb b/activerecord/test/cases/primary_keys_test.rb index 0669707baf..b4d1a631fa 100644 --- a/activerecord/test/cases/primary_keys_test.rb +++ b/activerecord/test/cases/primary_keys_test.rb @@ -188,14 +188,14 @@ class PrimaryKeyWithNoConnectionTest < ActiveRecord::TestCase def test_set_primary_key_with_no_connection return skip("disconnect wipes in-memory db") if in_memory_db? - connection = ActiveRecord::Base.remove_connection + connection = ActiveRecord::Model.remove_connection model = Class.new(ActiveRecord::Base) model.primary_key = 'foo' assert_equal 'foo', model.primary_key - ActiveRecord::Base.establish_connection(connection) + ActiveRecord::Model.establish_connection(connection) assert_equal 'foo', model.primary_key end |