diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-13 10:27:47 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-13 10:27:47 -0700 |
commit | dbdbe961cd41a5fa69d6e0e92943195e2fb4d279 (patch) | |
tree | 24d51eb42fd41cae1191cfbb3d6d34e1425dbd55 /activerecord/test/cases/multiple_db_test.rb | |
parent | 21b69b233bda5870274c84ef8178c9ad9a47c390 (diff) | |
parent | fdb8805cdd0d159763507e206a6ca3355b27f983 (diff) | |
download | rails-dbdbe961cd41a5fa69d6e0e92943195e2fb4d279.tar.gz rails-dbdbe961cd41a5fa69d6e0e92943195e2fb4d279.tar.bz2 rails-dbdbe961cd41a5fa69d6e0e92943195e2fb4d279.zip |
Merge pull request #5416 from kennyj/fix_5399
Fix GH #5399. connection_pools's keys are ActiveRecord::Base::ConnectionSpecification objects.
Diffstat (limited to 'activerecord/test/cases/multiple_db_test.rb')
-rw-r--r-- | activerecord/test/cases/multiple_db_test.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activerecord/test/cases/multiple_db_test.rb b/activerecord/test/cases/multiple_db_test.rb index 917a03bb34..06d6596725 100644 --- a/activerecord/test/cases/multiple_db_test.rb +++ b/activerecord/test/cases/multiple_db_test.rb @@ -86,7 +86,13 @@ class MultipleDbTest < ActiveRecord::TestCase end def test_arel_table_engines - assert_equal Entrant.arel_engine, Bird.arel_engine + 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, Bird.arel_engine.connection + assert_not_equal Entrant.arel_engine.connection, Course.arel_engine.connection end unless in_memory_db? |