File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
spec/rspec/rails/matchers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def and(_)
40
40
41
41
def matches? ( block )
42
42
if block . nil?
43
- raise ArgumentError , "block is required for have_reported_error matcher "
43
+ raise ArgumentError , "this matcher doesn’t work with value expectations "
44
44
end
45
45
46
46
@error_subscriber = ErrorSubscriber . new
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class AnotherTestError < StandardError; end
11
11
it "warns that passing value expectation doesn't work" do
12
12
expect {
13
13
expect ( Rails . error . report ( StandardError . new ( "test error" ) ) ) . to have_reported_error
14
- } . to raise_error ( ArgumentError , "block is required for have_reported_error matcher " )
14
+ } . to raise_error ( ArgumentError , "this matcher doesn’t work with value expectations " )
15
15
end
16
16
17
17
describe "basic functionality" do
You can’t perform that action at this time.
0 commit comments