aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-16 20:53:35 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-16 20:53:35 -0800
commit7c9845e770b2dd2c9875a43e9258c47a74ce1bed (patch)
tree82ea7f566b5af2a3a9805ef6e47a63a70edc542a
parent120751d2d482119f688c44d20bda78e7f4abc8f6 (diff)
downloadrails-7c9845e770b2dd2c9875a43e9258c47a74ce1bed.tar.gz
rails-7c9845e770b2dd2c9875a43e9258c47a74ce1bed.tar.bz2
rails-7c9845e770b2dd2c9875a43e9258c47a74ce1bed.zip
do not use private methods
-rw-r--r--test/test_table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_table.rb b/test/test_table.rb
index c2d7f5e98f..8d37a8eaff 100644
--- a/test/test_table.rb
+++ b/test/test_table.rb
@@ -185,7 +185,7 @@ module Arel
it 'should be present in the table cache despite the class of its name' do
[ 'users', :users ].each do |name|
relation = Table.new name
- relation.send(:tables).key?(relation.name).must_equal true
+ Table.table_cache(relation.engine).key?(relation.name).must_equal true
end
end
end