summaryrefslogtreecommitdiff
path: root/test/ruby/test_bignum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r--test/ruby/test_bignum.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 4d87d5fca32..2c6eda0d8ec 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -634,8 +634,7 @@ class TestBignum < Test::Unit::TestCase
if (big = 2**31-1).is_a?(Fixnum)
return
end
- e = assert_raise(RangeError) {(1 << big).to_s}
- assert_match(/too big to convert/, e.message)
+ assert_raise_with_message(RangeError, /too big to convert/) {(1 << big).to_s}
end
def test_fix_fdiv