aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/primary_keys_test.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-12-28 23:08:10 +0000
committerJon Leighton <j@jonathanleighton.com>2011-12-28 23:08:40 +0000
commitf06074f365932f47e108004b93f05b259cf0c5db (patch)
tree77a72b8077ce790ecf90b47c086cf8981f901ccc /activerecord/test/cases/primary_keys_test.rb
parente99987bc309a276bb6aea700ff184194768a6ee4 (diff)
downloadrails-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.rb4
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