From 9474197b43496e75eba534f6eb65ad0a31d45a6a Mon Sep 17 00:00:00 2001 From: Evan Summers Date: Fri, 8 Aug 2025 21:32:15 +0200 Subject: [PATCH] Partially fix export_spec --- spec/models/export_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/models/export_spec.rb b/spec/models/export_spec.rb index 16b0f436b36..f5025fa9b04 100644 --- a/spec/models/export_spec.rb +++ b/spec/models/export_spec.rb @@ -105,16 +105,15 @@ RSpec.describe Export do end describe '#to_filters_csv' do - before { Fabricate.times(2, :custom_filters, account: account) } + before { Fabricate.times(2, :custom_filter, account: account) } let(:export) { CSV.parse(subject.to_filters_csv) } it 'returns a csv of custom filters' do expect(export) .to contain_exactly( - contain_exactly('Title', 'Context', 'Keywords', 'Action', 'Expire after'), - include('discourse', 'home,notifications', 'discourse', 'warn', be_blank), - include(be_present) + contain_exactly('Title', 'Context', 'Keywords', 'Whole Word', 'Action', 'Expire after'), + include('discourse', '["home", "notifications"]', '["discourse"]', '[true]', 'warn', be_blank) ) end end