From aecca89b888fb69949cdbb585a2f6ad5a126fb88 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Tue, 14 Oct 2025 23:47:47 +0200 Subject: [PATCH] Update specs --- spec/models/report_filter_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/report_filter_spec.rb b/spec/models/report_filter_spec.rb index 39b7d3dfa78..86894fe7192 100644 --- a/spec/models/report_filter_spec.rb +++ b/spec/models/report_filter_spec.rb @@ -31,12 +31,12 @@ RSpec.describe ReportFilter do end end - context 'when given remote target_origin and also by_target_domain' do + context 'when given remote search_type and search_term of a domain' do let!(:matching_report) { Fabricate :report, target_account: Fabricate(:account, domain: 'match.example') } let!(:non_matching_report) { Fabricate :report, target_account: Fabricate(:account, domain: 'other.example') } it 'preserves the domain value' do - filter = described_class.new(by_target_domain: 'match.example', target_origin: 'remote') + filter = described_class.new(search_term: 'match.example', search_type: 'target') expect(filter.results) .to include(matching_report)