File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -211,8 +211,8 @@ def perform; end
211
211
212
212
it "passes with provided argument matchers" do
213
213
expect {
214
- hello_job . perform_later ( 42 , "David" )
215
- } . to have_enqueued_job . with ( instance_of ( Fixnum ) , instance_of ( String ) )
214
+ ignoring_warnings { hello_job . perform_later ( 42 , "David" ) }
215
+ } . to have_enqueued_job . with ( 42 , "David" )
216
216
end
217
217
218
218
it "generates failure message with all provided options" do
Original file line number Diff line number Diff line change @@ -10,5 +10,13 @@ def with_isolated_config
10
10
RSpec . configuration = original_config
11
11
end
12
12
13
+ def ignoring_warnings
14
+ original = $VERBOSE
15
+ $VERBOSE = nil
16
+ result = yield
17
+ $VERBOSE = original
18
+ result
19
+ end
20
+
13
21
RSpec . configure { |c | c . include self }
14
22
end
You can’t perform that action at this time.
0 commit comments