Skip to content

Commit

Permalink
TEST: support ruby 3.3 NoMethodError message
Browse files Browse the repository at this point in the history
ruby 3.3 changes error messages especially for NoMethodError:
ruby/ruby#6950
https://bugs.ruby-lang.org/issues/18285

Modify spec to support this new ruby 3.3 error messages.

Closes ms-ati#105 .
  • Loading branch information
mtasaka committed Oct 6, 2023
1 parent 08cf67d commit 43e851b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/docile_spec.rb
Expand Up @@ -249,7 +249,7 @@ def push_element
expect { push_element }.
to raise_error(
NoMethodError,
/undefined method `push' (for|on) nil:NilClass/
/undefined method `push' (for|on) nil/
)
end
end
Expand Down

0 comments on commit 43e851b

Please sign in to comment.