File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2222 subject . next . should be_instance_of ( Zendesk ::Ticket )
2323 end
2424
25- context "with client error" do
25+ context "with client error" , :silence_stdout do
2626 before ( :each ) do
2727 stub_request ( :get , %r{play/next} ) . to_return ( :status => 500 )
2828 end
5656 subject . destroyed? . should be_true
5757 end
5858
59- context "with client error" do
59+ context "with client error" , :silence_stdout do
6060 before ( :each ) do
6161 stub_request ( :delete , %r{play} ) . to_return ( :status => 500 )
6262 end
6868 end
6969
7070 context "initialization" do
71- context "with client error" do
71+ context "with client error" , :silence_stdout do
7272 before ( :each ) do
7373 stub_request ( :get , %r{views/\d +/play} ) . to_return ( :status => 500 ) . to_return ( :status => 302 )
7474 stub_request ( :get , %r{play/next} ) . to_return ( :body => { } )
Original file line number Diff line number Diff line change 3939 WebMock . reset!
4040 end
4141
42+ c . around ( :each , :silence_stdout ) do |example |
43+ silence_stdout { example . call }
44+ end
45+
4246 c . extend VCR ::RSpec ::Macros
4347 c . extend ResourceMacros
4448end
You can’t perform that action at this time.
0 commit comments