aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-28 05:42:12 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-28 05:42:12 +0000
commit7555073803ffb455715b74664a0cfb48c271fe89 (patch)
treec3729911796be98a9ad48c5bee6da6402f050ffb /activerecord
parent16558f6dd83d514f783ed13e9bc24d6b66e5aefd (diff)
downloadrails-7555073803ffb455715b74664a0cfb48c271fe89.tar.gz
rails-7555073803ffb455715b74664a0cfb48c271fe89.tar.bz2
rails-7555073803ffb455715b74664a0cfb48c271fe89.zip
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
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/associations/inner_join_association_test.rb2
1 files changed, 1 insertions, 1 deletions
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