From 311b7154839b91c87ee40908ac6d3f5c330d7b11 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Feb 2016 07:45:58 +0000 Subject: test: use assert_not_* git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_variable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_variable.rb') 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) -- cgit v1.2.3