Skip to content

Commit

Permalink
Merge pull request #2305 from andrehjr/fix-spec-ruby-head-error-msg
Browse files Browse the repository at this point in the history
In Ruby 3.4 error messages are not including backticks
  • Loading branch information
andrehjr committed Mar 17, 2024
2 parents 0a948ae + 15fa124 commit 93cfc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/code_spec.rb
Expand Up @@ -512,7 +512,7 @@ def bound_method
context "when a String does not respond to the given method" do
it "raises NoMethodError" do
expect { subject.abcdefg }
.to raise_error(NoMethodError, /undefined method `abcdefg'/)
.to raise_error(NoMethodError, /undefined method (`|')abcdefg'/)
end
end
end
Expand Down

0 comments on commit 93cfc11

Please sign in to comment.