Fix failing spec.
This commit is contained in:
parent
ce4c8e957b
commit
d6e45864ce
|
@ -30,8 +30,7 @@ module Jobs
|
|||
ensure
|
||||
# send notification to user regarding progress
|
||||
notify_user
|
||||
|
||||
FileUtils.rm_rf(csv_path) if csv_path
|
||||
File.delete(csv_path) if csv_path
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -13,9 +13,9 @@ describe Jobs::BulkInvite do
|
|||
let(:filename) { "#{Invite.base_directory}/#{basename}" }
|
||||
|
||||
before do
|
||||
FileUtils.cp(
|
||||
"#{Rails.root}/spec/fixtures/csv/#{basename}",
|
||||
filename
|
||||
Invite.create_csv(
|
||||
fixture_file_upload("#{Rails.root}/spec/fixtures/csv/#{basename}"),
|
||||
"bulk_invite"
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue