Skip to content

Commit

Permalink
Fix spec looking for Integer class in older Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Nov 4, 2020
1 parent a557972 commit 621cdd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/better_errors/exception_hint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 621cdd7

Please sign in to comment.