diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_class.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index 6fc461ed08..9a34a81334 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -283,12 +283,8 @@ class TestClass < Test::Unit::TestCase assert_raise(TypeError, bug6863) { Class.new(Class.allocate) } allocator = Class.instance_method(:allocate) - assert_raise_with_message(TypeError, /prohibited/) { - allocator.bind(Rational).call - } - assert_raise_with_message(TypeError, /prohibited/) { - allocator.bind_call(Rational) - } + assert_nothing_raised { allocator.bind(Rational).call } + assert_nothing_raised { allocator.bind_call(Rational) } end def test_nonascii_name |
