diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-03 11:50:43 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-03 11:50:43 -0800 |
commit | d65e3b481e72e8c76818a94353e9ac315c7c0272 (patch) | |
tree | 86b9cbbb97f342d9e5efa11128f3661fb5578739 /activerecord/test/cases | |
parent | 1a15fda02159487371a0cb4c36311345dec7b46b (diff) | |
download | rails-d65e3b481e72e8c76818a94353e9ac315c7c0272.tar.gz rails-d65e3b481e72e8c76818a94353e9ac315c7c0272.tar.bz2 rails-d65e3b481e72e8c76818a94353e9ac315c7c0272.zip |
ARel only requires the connection from the AR class. Simply return the AR class rather than jump through hoops and store ivars
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/multiple_db_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/multiple_db_test.rb b/activerecord/test/cases/multiple_db_test.rb index bd51388e05..3daf81c828 100644 --- a/activerecord/test/cases/multiple_db_test.rb +++ b/activerecord/test/cases/multiple_db_test.rb @@ -84,8 +84,8 @@ class MultipleDbTest < ActiveRecord::TestCase assert_equal "Ruby Developer", Entrant.find(1).name end - def test_arel_table_engines - assert_not_equal Entrant.arel_engine, Course.arel_engine - assert_equal Entrant.arel_engine, Bird.arel_engine + def test_connections + assert_not_equal Entrant.connection, Course.connection + assert_equal Entrant.connection, Bird.connection end end |