Skip to content

Commit 621cdd7

Browse files
Fix spec looking for Integer class in older Ruby
1 parent a557972 commit 621cdd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/better_errors/exception_hint_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@
4343
let(:val) { 42 }
4444

4545
it {
46-
is_expected.to eq("`foo` is being called on a `Integer` object"\
47-
", which might not be the type of object you were expecting.")
46+
is_expected.to match(
47+
/`foo` is being called on a `(Integer|Fixnum)` object, which might not be the type of object you were expecting./
48+
)
4849
}
4950
end
5051
end

0 commit comments

Comments
 (0)