Skip to content

Commit 980ec9a

Browse files
skatkovpirj
andauthored
Remove from features/matchers/README.md
Co-authored-by: Phil Pirozhkov <[email protected]>
1 parent bd4e048 commit 980ec9a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

features/matchers/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,4 @@ expect(assigns(:widget)).to be_a_new(Widget)
3030
```ruby
3131
# passes when any error is reported
3232
expect { Rails.error.report(StandardError.new) }.to have_reported_error
33-
34-
# passes when specific error class is reported
35-
expect { Rails.error.report(MyError.new) }.to have_reported_error(MyError)
36-
37-
# passes when specific error class with exact message is reported
38-
expect { Rails.error.report(MyError.new("message")) }.to have_reported_error(MyError, "message")
39-
40-
# passes when specific error class with message matching pattern is reported
41-
expect { Rails.error.report(MyError.new("test message")) }.to have_reported_error(MyError, /test/)
42-
43-
# passes when any error with exact message is reported
44-
expect { Rails.error.report(StandardError.new("exact message")) }.to have_reported_error("exact message")
45-
46-
# passes when any error with message matching pattern is reported
47-
expect { Rails.error.report(StandardError.new("test message")) }.to have_reported_error(/test/)
48-
49-
# passes when error is reported with specific context attributes
50-
expect { Rails.error.report(StandardError.new, context: { user_id: 123 }) }.to have_reported_error.with_context(user_id: 123)
5133
```

0 commit comments

Comments
 (0)