diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 09:03:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 09:03:03 +0000 |
commit | ef46e8d2645cb8987c558102430cc5a642f6232b (patch) | |
tree | 705b8f9184266ca4f690ae3195d22932f8e48415 /test/-ext-/symbol | |
parent | 6af3029c8c0943cd49c8c12572a759292c063712 (diff) | |
download | ruby-ef46e8d2645cb8987c558102430cc5a642f6232b.tar.gz |
test_inadvertent_creation.rb: fix assertion name
* test/-ext-/symbol/test_inadvertent_creation.rb: fix assertion name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/symbol')
-rw-r--r-- | test/-ext-/symbol/test_inadvertent_creation.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb index e9d6d27ea1..ba5a162231 100644 --- a/test/-ext-/symbol/test_inadvertent_creation.rb +++ b/test/-ext-/symbol/test_inadvertent_creation.rb @@ -139,7 +139,7 @@ module Test_Symbol def test_public_send name = noninterned_name e = assert_raise(NoMethodError) {@obj.public_send(name, Feature5112)} - assert_not_interned?(name) + assert_not_interned(name) assert_equal(name, e.name) assert_equal([Feature5112], e.args) end @@ -147,7 +147,7 @@ module Test_Symbol def test_send name = noninterned_name e = assert_raise(NoMethodError) {@obj.send(name, Feature5112)} - assert_not_interned?(name) + assert_not_interned(name) assert_equal(name, e.name) assert_equal([Feature5112], e.args) end @@ -155,7 +155,7 @@ module Test_Symbol def test___send__ name = noninterned_name e = assert_raise(NoMethodError) {@obj.__send__(name, Feature5112)} - assert_not_interned?(name) + assert_not_interned(name) assert_equal(name, e.name) assert_equal([Feature5112], e.args) end @@ -164,75 +164,75 @@ module Test_Symbol Thread.current[:test] = nil name = noninterned_name assert_nil(Thread.current[name]) - assert_not_interned?(name) + assert_not_interned(name) end def test_thread_key? Thread.current[:test] = nil name = noninterned_name assert_not_send([Thread.current, :key?, name]) - assert_not_interned?(name) + assert_not_interned(name) end def test_thread_variable_get Thread.current.thread_variable_set(:test, nil) name = noninterned_name assert_nil(Thread.current.thread_variable_get(name)) - assert_not_interned?(name) + assert_not_interned(name) end def test_thread_variable? Thread.current.thread_variable_set(:test, nil) name = noninterned_name assert_not_send([Thread.current, :thread_variable?, name]) - assert_not_interned?(name) + assert_not_interned(name) end def test_enumerable_inject_op name = noninterned_name assert_raise(NoMethodError) {[1, 2].inject(name)} - assert_not_interned?(name) + assert_not_interned(name) end def test_module_const_set name = noninterned_name mod = Module.new assert_raise(NameError) {mod.const_set(name, true)} - assert_not_interned?(name) + assert_not_interned(name) end def test_module_cvar_set name = noninterned_name mod = Module.new assert_raise(NameError) {mod.class_variable_set(name, true)} - assert_not_interned?(name) + assert_not_interned(name) end def test_object_ivar_set name = noninterned_name obj = Object.new assert_raise(NameError) {obj.instance_variable_set(name, true)} - assert_not_interned?(name) + assert_not_interned(name) end def test_struct_new name = noninterned_name assert_raise(NameError) {Struct.new(name)} - assert_not_interned?(name) + assert_not_interned(name) end def test_struct_aref s = Struct.new(:foo).new name = noninterned_name assert_raise(NameError) {s[name]} - assert_not_interned?(name) + assert_not_interned(name) end def test_struct_aset s = Struct.new(:foo).new name = noninterned_name assert_raise(NameError) {s[name] = true} - assert_not_interned?(name) + assert_not_interned(name) end end end |