diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-03 14:04:21 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-03 14:04:21 -0800 |
commit | 23a3ba426067d3d38259ef4e1d234cbb82c8aea2 (patch) | |
tree | 796e2b13201d06e141adee7f69f6d3ae9ddc53ce /activerecord/test/cases | |
parent | 95d5d9b6c48c08f1fba0c77ecbc97b62b2603824 (diff) | |
download | rails-23a3ba426067d3d38259ef4e1d234cbb82c8aea2.tar.gz rails-23a3ba426067d3d38259ef4e1d234cbb82c8aea2.tar.bz2 rails-23a3ba426067d3d38259ef4e1d234cbb82c8aea2.zip |
Revert "ARel only requires the connection from the AR class. Simply return the AR class rather than jump through hoops and store ivars"
This reverts commit d65e3b481e72e8c76818a94353e9ac315c7c0272.
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 3daf81c828..bd51388e05 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_connections - assert_not_equal Entrant.connection, Course.connection - assert_equal Entrant.connection, Bird.connection + def test_arel_table_engines + assert_not_equal Entrant.arel_engine, Course.arel_engine + assert_equal Entrant.arel_engine, Bird.arel_engine end end |