mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-15 04:34:00 -05: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
|