mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +01:00
8b74aa4217
* 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
14 lines
307 B
Ruby
14 lines
307 B
Ruby
require 'rails_helper'
|
|
|
|
describe Report do
|
|
describe 'statuses' do
|
|
it 'returns the statuses for the report' do
|
|
status = Fabricate(:status)
|
|
_other = Fabricate(:status)
|
|
report = Fabricate(:report, status_ids: [status.id])
|
|
|
|
expect(report.statuses).to eq [status]
|
|
end
|
|
end
|
|
end
|