File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,6 @@ expect(assigns(:widget)).to be_a_new(Widget)
28
28
### error reporting
29
29
30
30
``` ruby
31
- # passes if Rails.error.report was called with any error
32
- expect { Rails .error.report(StandardError .new ) }.to have_reported_error
33
-
34
- # passes if Rails.error.report was called with a specific error class
35
- expect { Rails .error.report(MyError .new ) }.to have_reported_error(MyError )
36
-
37
31
# passes if Rails.error.report was called with specific error instance and message
38
32
expect { Rails .error.report(MyError .new (" message" )) }.to have_reported_error(MyError .new (" message" ))
39
-
40
- # passes if Rails.error.report was called with error matching regex pattern
41
- expect { Rails .error.report(StandardError .new (" test message" )) }.to have_reported_error(/test/ )
42
-
43
- # passes if Rails.error.report was called with specific attributes
44
- expect { Rails .error.report(StandardError .new , context: " test" ) }.to have_reported_error.with(context: " test" )
45
33
```
You can’t perform that action at this time.
0 commit comments