From d65e3b481e72e8c76818a94353e9ac315c7c0272 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 3 Feb 2011 11:50:43 -0800 Subject: ARel only requires the connection from the AR class. Simply return the AR class rather than jump through hoops and store ivars --- activerecord/test/cases/multiple_db_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activerecord/test/cases/multiple_db_test.rb') 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 -- cgit v1.2.3