Merge commit 'd20d04922672ed016029c40ed64798f341ebca91' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2026-05-26 20:48:49 +02:00
commit 06176deee2
50 files changed
+710 -112

No files matched your search

@@ -78,6 +78,17 @@ RSpec.describe 'Reports' do
end
end
context 'with both resolved and unresolved params' do
let(:params) { { resolved: true, unresolved: true } }
let(:scope) { Report.all }
it 'returns all reports' do
subject
expect(response.parsed_body).to match_array(expected_response)
end
end
context 'with account_id param' do
let(:params) { { account_id: reporter.id } }
let(:scope) { Report.unresolved.where(account: reporter) }