aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/inner_join_association_test.rb
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-01-07 14:44:47 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-01-07 14:44:47 +0300
commit7d862359d0ebe8c173ef2e069dcbf2c69f43d798 (patch)
tree551a9c764b0f182602a59abcac286c95a0f627c0 /activerecord/test/cases/associations/inner_join_association_test.rb
parentba168e8f067d72f7a21691f4cfdcd40432135246 (diff)
downloadrails-7d862359d0ebe8c173ef2e069dcbf2c69f43d798.tar.gz
rails-7d862359d0ebe8c173ef2e069dcbf2c69f43d798.tar.bz2
rails-7d862359d0ebe8c173ef2e069dcbf2c69f43d798.zip
get rid of using instance_variable_names method from AS
- instance_variables return symbols in 1.9 - there is instance_variable_defined? method
Diffstat (limited to 'activerecord/test/cases/associations/inner_join_association_test.rb')
-rw-r--r--activerecord/test/cases/associations/inner_join_association_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/inner_join_association_test.rb b/activerecord/test/cases/associations/inner_join_association_test.rb
index cb777b9f78..4202d28061 100644
--- a/activerecord/test/cases/associations/inner_join_association_test.rb
+++ b/activerecord/test/cases/associations/inner_join_association_test.rb
@@ -67,7 +67,7 @@ class InnerJoinAssociationTest < ActiveRecord::TestCase
def test_find_with_implicit_inner_joins_does_not_set_associations
authors = Author.joins(:posts).select('authors.*')
assert !authors.empty?, "expected authors to be non-empty"
- assert authors.all? {|a| !a.send(:instance_variable_names).include?("@posts")}, "expected no authors to have the @posts association loaded"
+ assert authors.all? { |a| !a.instance_variable_defined?(:@posts) }, "expected no authors to have the @posts association loaded"
end
def test_count_honors_implicit_inner_joins