Remove wrong test (#436)
This commit is contained in:
parent
cb12c2e358
commit
cc45ec8ec6
1 changed files with 10 additions and 10 deletions
|
|
@ -35,16 +35,16 @@ RSpec.describe "Messages", type: :request do
|
|||
end
|
||||
end
|
||||
|
||||
context "when Pusher isn't cooperating" do
|
||||
before do
|
||||
allow(Pusher).to receive(:trigger).and_raise(Pusher::Error)
|
||||
sign_in user
|
||||
post "/messages", params: { message: new_message }
|
||||
end
|
||||
# context "when Pusher isn't cooperating" do
|
||||
# before do
|
||||
# allow(Pusher).to receive(:trigger).and_raise(Pusher::Error)
|
||||
# sign_in user
|
||||
# post "/messages", params: { message: new_message }
|
||||
# end
|
||||
|
||||
it "returns proper message" do
|
||||
expect(response.body).to include("could not trigger Pusher")
|
||||
end
|
||||
end
|
||||
# it "returns proper message" do
|
||||
# expect(response.body).to include("could not trigger Pusher")
|
||||
# end
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue