Autofix Rubocop RSpec/BeEq (#23740)

This commit is contained in:
Nick Schonning authored and GitHub committed 2023-02-20 06:14:50 +01:00
1 parent bf785df9fe
commit 5116347eb7
39 files changed
+139 -182

No files matched your search

@@ -55,7 +55,7 @@ describe Admin::ReportsController do
expect(response).to redirect_to(admin_reports_path)
report.reload
expect(report.action_taken_by_account).to eq user.account
expect(report.action_taken?).to eq true
expect(report.action_taken?).to be true
end
end
@@ -66,8 +66,8 @@ describe Admin::ReportsController do
put :reopen, params: { id: report }
expect(response).to redirect_to(admin_report_path(report))
report.reload
expect(report.action_taken_by_account).to eq nil
expect(report.action_taken?).to eq false
expect(report.action_taken_by_account).to be_nil
expect(report.action_taken?).to be false
end
end
@@ -89,7 +89,7 @@ describe Admin::ReportsController do
put :unassign, params: { id: report }
expect(response).to redirect_to(admin_report_path(report))
report.reload
expect(report.assigned_account).to eq nil
expect(report.assigned_account).to be_nil
end
end
end