From 7555073803ffb455715b74664a0cfb48c271fe89 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 28 Dec 2007 05:42:12 +0000 Subject: Ruby 1.9 compat: introduce instance_variable_names. Closes #10630 [Frederick Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/associations/inner_join_association_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test') diff --git a/activerecord/test/associations/inner_join_association_test.rb b/activerecord/test/associations/inner_join_association_test.rb index 8d583f2138..d2ba4ef634 100644 --- a/activerecord/test/associations/inner_join_association_test.rb +++ b/activerecord/test/associations/inner_join_association_test.rb @@ -67,7 +67,7 @@ class InnerJoinAssociationTest < Test::Unit::TestCase def test_find_with_implicit_inner_joins_does_not_set_associations authors = Author.find(:all, :select => 'authors.*', :joins => :posts) assert !authors.empty?, "expected authors to be non-empty" - assert authors.all? {|a| !a.send(:instance_variables).include?("@posts")}, "expected no authors to have the @posts association loaded" + assert authors.all? {|a| !a.send(:instance_variable_names).include?("@posts")}, "expected no authors to have the @posts association loaded" end def test_count_honors_implicit_inner_joins -- cgit v1.2.3