Autofix Rubocop RSpec/BeEq (#23740)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user