Skip to content

Commit

Permalink
Support Ruby 3.4's new error message format
Browse files Browse the repository at this point in the history
Ruby 3.4 will use a single quote instead of a backtrick as an open quote.

https://bugs.ruby-lang.org/issues/16495
  • Loading branch information
mame committed Feb 15, 2024
1 parent d14039c commit b2a9480
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit b2a9480

Please sign in to comment.