Remove assertion to_not raise_error.

If an error is raised the test would fail anyway.
This commit is contained in:
Guo Xiang Tan 2018-05-25 09:56:35 +08:00
parent 569f63b8a2
commit 58fbe74b6f

View File

@ -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"