diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_method.rb | 4 | ||||
-rw-r--r-- | test/ruby/test_proc.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 5cfcdb8dc5..82a1b71d32 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1088,10 +1088,10 @@ class TestMethod < Test::Unit::TestCase } f = c.new.method(:f) - assert_raise(NoMethodError) { + assert_raise(TypeError) { (f << 5).call(2) } - assert_raise(NoMethodError) { + assert_raise(TypeError) { (f >> 5).call(2) } end diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 8e8f719892..4abe0aa1bb 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1474,10 +1474,10 @@ class TestProc < Test::Unit::TestCase def test_compose_with_noncallable f = proc {|x| x * 2} - assert_raise(NoMethodError) { + assert_raise(TypeError) { (f << 5).call(2) } - assert_raise(NoMethodError) { + assert_raise(TypeError) { (f >> 5).call(2) } end |