Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ruby 3.4's new error message format #286

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/bigdecimal/test_bigdecimal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def test_BigDecimal_with_exception_keyword
end

def test_s_ver
assert_raise_with_message(NoMethodError, /undefined method `ver'/) { BigDecimal.ver }
assert_raise_with_message(NoMethodError, /undefined method [`']ver'/) { BigDecimal.ver }
end

def test_s_allocate
Expand All @@ -302,7 +302,7 @@ def test_s_allocate
end

def test_s_new
assert_raise_with_message(NoMethodError, /undefined method `new'/) { BigDecimal.new("1") }
assert_raise_with_message(NoMethodError, /undefined method [`']new'/) { BigDecimal.new("1") }
end

def test_s_interpret_loosely
Expand Down Expand Up @@ -2067,7 +2067,7 @@ def test_dup

def test_new_subclass
c = Class.new(BigDecimal)
assert_raise_with_message(NoMethodError, /undefined method `new'/) { c.new(1) }
assert_raise_with_message(NoMethodError, /undefined method [`']new'/) { c.new(1) }
end

def test_bug6406
Expand Down