We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4c84d commit b20a699Copy full SHA for b20a699
lib/rspec/rails/matchers/have_reported_error.rb
@@ -48,6 +48,10 @@ def and(_)
48
raise ArgumentError, "Chaining is not supported"
49
end
50
51
+ def or(_)
52
+ raise ArgumentError, "Chaining is not supported"
53
+ end
54
+
55
def matches?(block)
56
warn_about_nil_error! if @warn_about_nil_error
57
@@ -225,7 +229,7 @@ def warn_about_negated_with_qualifiers!
225
229
226
230
227
231
def has_qualifiers?
228
- !@expected_error.nil? || !@expected_message.nil? || !@attributes.empty?
232
+ @expected_error || @expected_message || @attributes
233
234
235
0 commit comments