diff --git a/spec/jobs/export_csv_file_spec.rb b/spec/jobs/export_csv_file_spec.rb index d1ffb5edc13..1852556da2d 100644 --- a/spec/jobs/export_csv_file_spec.rb +++ b/spec/jobs/export_csv_file_spec.rb @@ -11,7 +11,8 @@ describe Jobs::ExportCsvFile do it 'works' do begin - expect { Jobs::ExportCsvFile.new.execute(user_id: user.id, entity: "user_archive") }.to_not raise_error + Jobs::ExportCsvFile.new.execute(user_id: user.id, entity: "user_archive") + expect(user.topics_allowed.last.title).to eq(I18n.t( "system_messages.csv_export_succeeded.subject_template", export_title: "User Archive"