diff options
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r-- | test/ruby/test_object.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index 4e958a7f7b..c8b5c3b279 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -1,3 +1,4 @@ +# -*- coding: us-ascii -*- require 'test/unit' require_relative 'envutil' @@ -184,7 +185,7 @@ class TestObject < Test::Unit::TestCase def test_remove_instance_variable o = Object.new o.instance_eval { @foo = :foo } - o.instance_eval { remove_instance_variable(:@foo) } + o.remove_instance_variable(:@foo) assert_equal(false, o.instance_variable_defined?(:@foo)) end |