mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 12:18: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
13 lines
307 B
Ruby
13 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
|