Satisfy Rubocop
This commit is contained in:
parent
024b6fa11a
commit
2e2a2a366f
1 changed files with 6 additions and 7 deletions
|
@ -32,13 +32,13 @@ describe AbuseReportsController do
|
|||
end
|
||||
|
||||
it "saves the abuse report" do
|
||||
expect {
|
||||
expect do
|
||||
post :create,
|
||||
abuse_report: {
|
||||
user_id: user.id,
|
||||
message: message
|
||||
}
|
||||
}.to change { AbuseReport.count }.by(1)
|
||||
end.to change { AbuseReport.count }.by(1)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -48,24 +48,23 @@ describe AbuseReportsController do
|
|||
end
|
||||
|
||||
it "does not send a notification email" do
|
||||
expect {
|
||||
expect do
|
||||
post :create,
|
||||
abuse_report: {
|
||||
user_id: user.id,
|
||||
message: message
|
||||
}
|
||||
|
||||
}.not_to change { ActionMailer::Base.deliveries.count }
|
||||
end.not_to change { ActionMailer::Base.deliveries.count }
|
||||
end
|
||||
|
||||
it "saves the abuse report" do
|
||||
expect {
|
||||
expect do
|
||||
post :create,
|
||||
abuse_report: {
|
||||
user_id: user.id,
|
||||
message: message
|
||||
}
|
||||
}.to change { AbuseReport.count }.by(1)
|
||||
end.to change { AbuseReport.count }.by(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue