Commit 2e2a2a36 authored by Douwe Maan's avatar Douwe Maan

Satisfy Rubocop

parent 024b6fa1
...@@ -32,13 +32,13 @@ describe AbuseReportsController do ...@@ -32,13 +32,13 @@ describe AbuseReportsController do
end end
it "saves the abuse report" do it "saves the abuse report" do
expect { expect do
post :create, post :create,
abuse_report: { abuse_report: {
user_id: user.id, user_id: user.id,
message: message message: message
} }
}.to change { AbuseReport.count }.by(1) end.to change { AbuseReport.count }.by(1)
end end
end end
...@@ -48,24 +48,23 @@ describe AbuseReportsController do ...@@ -48,24 +48,23 @@ describe AbuseReportsController do
end end
it "does not send a notification email" do it "does not send a notification email" do
expect { expect do
post :create, post :create,
abuse_report: { abuse_report: {
user_id: user.id, user_id: user.id,
message: message message: message
} }
end.not_to change { ActionMailer::Base.deliveries.count }
}.not_to change { ActionMailer::Base.deliveries.count }
end end
it "saves the abuse report" do it "saves the abuse report" do
expect { expect do
post :create, post :create,
abuse_report: { abuse_report: {
user_id: user.id, user_id: user.id,
message: message message: message
} }
}.to change { AbuseReport.count }.by(1) end.to change { AbuseReport.count }.by(1)
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment