diff --git a/spec/better_errors/exception_hint_spec.rb b/spec/better_errors/exception_hint_spec.rb index 68412b4b..9654f720 100644 --- a/spec/better_errors/exception_hint_spec.rb +++ b/spec/better_errors/exception_hint_spec.rb @@ -43,8 +43,9 @@ let(:val) { 42 } it { - is_expected.to eq("`foo` is being called on a `Integer` object"\ - ", which might not be the type of object you were expecting.") + is_expected.to match( + /`foo` is being called on a `(Integer|Fixnum)` object, which might not be the type of object you were expecting./ + ) } end end