Skip to content

Commit 344b65f

Browse files
authored
Merge pull request #313 from mrzasa/fix-no-allocator-on-truffle
Fix spec NoMethodError message for .allocator on truffle Ruby
2 parents a015c8b + 5c9e042 commit 344b65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bigdecimal/test_bigdecimal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def test_s_ver
297297

298298
def test_s_allocate
299299
if RUBY_ENGINE == "truffleruby"
300-
assert_raise_with_message(NoMethodError, /undefined.+allocate.+for BigDecimal/) { BigDecimal.allocate }
300+
assert_raise_with_message(NoMethodError, /undefined.+allocate.+for.+BigDecimal/) { BigDecimal.allocate }
301301
else
302302
assert_raise_with_message(TypeError, /allocator undefined for BigDecimal/) { BigDecimal.allocate }
303303
end

0 commit comments

Comments
 (0)