mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Use change-requiring records in admin/reports controller spec (#31052)
This commit is contained in:
parent
c5f8256801
commit
2616fde9e6
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ describe Admin::ReportsController do
|
|||
|
||||
describe 'POST #reopen' do
|
||||
it 'reopens the report' do
|
||||
report = Fabricate(:report)
|
||||
report = Fabricate(:report, action_taken_at: 3.days.ago)
|
||||
|
||||
put :reopen, params: { id: report }
|
||||
expect(response).to redirect_to(admin_report_path(report))
|
||||
|
@ -89,7 +89,7 @@ describe Admin::ReportsController do
|
|||
|
||||
describe 'POST #unassign' do
|
||||
it 'reopens the report' do
|
||||
report = Fabricate(:report)
|
||||
report = Fabricate(:report, assigned_account_id: Account.last.id)
|
||||
|
||||
put :unassign, params: { id: report }
|
||||
expect(response).to redirect_to(admin_report_path(report))
|
||||
|
|
Loading…
Reference in a new issue