aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-07-17 10:41:35 -0400
committerGitHub <noreply@github.com>2017-07-17 10:41:35 -0400
commit8e06f09875d7c935c69f137c3b992a35b782daa0 (patch)
treec46ac9741717f44567347accbb24f4fe7539e2c4 /activerecord/test/cases
parent5c71000d086cc42516934415b79380c2224e1614 (diff)
parenta0ebab52b2a708a09739e0c4ecc16ad16d4e676d (diff)
downloadrails-8e06f09875d7c935c69f137c3b992a35b782daa0.tar.gz
rails-8e06f09875d7c935c69f137c3b992a35b782daa0.tar.bz2
rails-8e06f09875d7c935c69f137c3b992a35b782daa0.zip
Merge pull request #29825 from kamipo/remove_useless_arel_engine
Remove useless `arel_engine`
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/multiple_db_test.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/activerecord/test/cases/multiple_db_test.rb b/activerecord/test/cases/multiple_db_test.rb
index e3bb51bd77..4e3daeabb6 100644
--- a/activerecord/test/cases/multiple_db_test.rb
+++ b/activerecord/test/cases/multiple_db_test.rb
@@ -90,14 +90,9 @@ class MultipleDbTest < ActiveRecord::TestCase
assert_equal "Ruby Developer", Entrant.find(1).name
end
- def test_arel_table_engines
- assert_not_equal Entrant.arel_engine, Bird.arel_engine
- assert_not_equal Entrant.arel_engine, Course.arel_engine
- end
-
def test_connection
- assert_equal Entrant.arel_engine.connection.object_id, Bird.arel_engine.connection.object_id
- assert_not_equal Entrant.arel_engine.connection.object_id, Course.arel_engine.connection.object_id
+ assert_same Entrant.connection, Bird.connection
+ assert_not_same Entrant.connection, Course.connection
end
unless in_memory_db?