summaryrefslogtreecommitdiff
path: root/test/ruby/test_variable.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:45:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:45:58 +0000
commit311b7154839b91c87ee40908ac6d3f5c330d7b11 (patch)
tree5a751c1b132d593c10fc74b657471364136a35f1 /test/ruby/test_variable.rb
parent6286ff6301f94a475702d905cb722d3a4c7c4535 (diff)
test: use assert_not_*
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_variable.rb')
-rw-r--r--test/ruby/test_variable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb
index 3fba8d1884..7432cbb6a2 100644
--- a/test/ruby/test_variable.rb
+++ b/test/ruby/test_variable.rb
@@ -144,7 +144,7 @@ class TestVariable < Test::Unit::TestCase
end
assert_nil v.instance_variable_get(:@foo)
- refute v.instance_variable_defined?(:@foo)
+ assert_not_send([v, :instance_variable_defined?, :@foo])
assert_raise_with_message(RuntimeError, msg) do
v.remove_instance_variable(:@foo)