Skip to content

Commit

Permalink
fix error RegExp for ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin committed Oct 30, 2023
1 parent 1890360 commit 8427f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
example do
expect {
klass.build one: 'two', foo: :bar
}.to raise_exception(NoMethodError, /undefined method `one=' for #<FooModel foo: nil>/)
}.to raise_exception(NoMethodError, /undefined method `one=' for .*FooModel/)
end
end

Expand Down

0 comments on commit 8427f18

Please sign in to comment.