diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index dbc00e56..fab9622a 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -297,7 +297,7 @@ def test_s_ver def test_s_allocate if RUBY_ENGINE == "truffleruby" - assert_raise_with_message(NoMethodError, /undefined.+allocate.+for BigDecimal/) { BigDecimal.allocate } + assert_raise_with_message(NoMethodError, /undefined.+allocate.+for.+BigDecimal/) { BigDecimal.allocate } else assert_raise_with_message(TypeError, /allocator undefined for BigDecimal/) { BigDecimal.allocate } end