Commit 0969a79e authored by Masaki Muranaka's avatar Masaki Muranaka

Add one more test for NameError#initialize. As we support NameError#name.

parent ea93ac13
......@@ -24,7 +24,9 @@ assert('NameError#name', '15.2.31.2.1') do
end
assert('NameError#initialize', '15.2.31.2.2') do
e = NameError.new.initialize('a')
e = NameError.new('a', :foo)
e.class == NameError and e.message == 'a'
e.class == NameError and
e.message == 'a' and
e.name == :foo
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment