aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object_and_class_ext_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-11-09 20:26:46 +0100
committerXavier Noria <fxn@hashref.com>2009-11-09 22:16:51 +0100
commitd4513ac69958063de3cad9aa655fe9d63e82ec76 (patch)
tree83b3c446369f40a8ba41098efd79458abfcc4c12 /activesupport/test/core_ext/object_and_class_ext_test.rb
parent047007fa9ddff03e1979f16a54cf059f4f592d46 (diff)
downloadrails-d4513ac69958063de3cad9aa655fe9d63e82ec76.tar.gz
rails-d4513ac69958063de3cad9aa655fe9d63e82ec76.tar.bz2
rails-d4513ac69958063de3cad9aa655fe9d63e82ec76.zip
Object#instance_variable_defined? is not needed for Ruby >= 1.8.7
Diffstat (limited to 'activesupport/test/core_ext/object_and_class_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/object_and_class_ext_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/test/core_ext/object_and_class_ext_test.rb b/activesupport/test/core_ext/object_and_class_ext_test.rb
index f0121b862d..e6fbdb637b 100644
--- a/activesupport/test/core_ext/object_and_class_ext_test.rb
+++ b/activesupport/test/core_ext/object_and_class_ext_test.rb
@@ -182,13 +182,6 @@ class ObjectInstanceVariableTest < Test::Unit::TestCase
assert_equal %w(@bar @baz), @source.instance_variable_names.sort
end
- def test_instance_variable_defined
- assert @source.instance_variable_defined?('@bar')
- assert @source.instance_variable_defined?(:@bar)
- assert !@source.instance_variable_defined?(:@foo)
- assert !@source.instance_variable_defined?('@foo')
- end
-
def test_copy_instance_variables_from_without_explicit_excludes
assert_equal [], @dest.instance_variables
@dest.copy_instance_variables_from(@source)