Skip to content

Commit

Permalink
Update test with new error message format (#495)
Browse files Browse the repository at this point in the history
Follow new error message format

ruby/ruby#9605
ruby/ruby@9ec9910
  • Loading branch information
kachick committed Feb 19, 2024
1 parent 7c41070 commit d110db2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/core/test_ulid_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def test_new
err = assert_raises(NoMethodError) do
ULID.new(milliseconds: 0, entropy: 42)
end
assert_match(/private method `new' called/, err.message)
# NoMethodError#private_call? will not fit. Checking the error message is not a good test, but required at here
assert_match(/private method (`|')new' called/, err.message)
end

def test_normalize
Expand Down

0 comments on commit d110db2

Please sign in to comment.