Skip to content

Commit 87ebd2a

Browse files
committed
simplify matcher
1 parent 33b4408 commit 87ebd2a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/rspec/rails/matchers/have_reported_error.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ def error_matches_expectation?
122122
actual_error.message&.match(@expected_error)
123123
when Symbol
124124
actual_error == @expected_error
125-
else
126-
true
127125
end
128126
end
129127

0 commit comments

Comments
 (0)