mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 07:16:44 +08:00
Fix failing spec.
This commit is contained in:
parent
ce4c8e957b
commit
d6e45864ce
@ -30,8 +30,7 @@ module Jobs
|
|||||||
ensure
|
ensure
|
||||||
# send notification to user regarding progress
|
# send notification to user regarding progress
|
||||||
notify_user
|
notify_user
|
||||||
|
File.delete(csv_path) if csv_path
|
||||||
FileUtils.rm_rf(csv_path) if csv_path
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -13,9 +13,9 @@ describe Jobs::BulkInvite do
|
|||||||
let(:filename) { "#{Invite.base_directory}/#{basename}" }
|
let(:filename) { "#{Invite.base_directory}/#{basename}" }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
FileUtils.cp(
|
Invite.create_csv(
|
||||||
"#{Rails.root}/spec/fixtures/csv/#{basename}",
|
fixture_file_upload("#{Rails.root}/spec/fixtures/csv/#{basename}"),
|
||||||
filename
|
"bulk_invite"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user