1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-14 06:38:21 +09:00
mastodon/spec/fabricators/report_fabricator.rb
Matt Jankowski 8b74aa4217 Admin reports controller improvements (#1714)
* Simplify admin/reports controller filtering for index

* Rename parameter to resolved

* Fix issue where reports view could not access filter_link_to

* Add coverage for admin/reports controller

* DRY up resolution of related reports for target account

* Clean up admin/reports routes

* Add Report#statuses method

* DRY up current account action taken params

* Rubocop styles
2017-04-14 11:10:28 +02:00

7 lines
126 B
Ruby

Fabricator(:report) do
account
target_account { Fabricate(:account) }
comment "You nasty"
action_taken false
end