mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Remove assertion to_not raise_error
.
If an error is raised the test would fail anyway.
This commit is contained in:
parent
569f63b8a2
commit
58fbe74b6f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user