Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-04-06 10:35:13 +08:00
parent 50257ebfb1
commit eb755dd2a7
1 changed files with 6 additions and 3 deletions

View File

@ -248,9 +248,12 @@ describe Admin::BackupsController do
expect(response.status).to eq(200)
expect(response.body).to eq("")
ensure
File.delete(
File.join(Backup.base_directory, 'tmp', 'test', "#{filename}.part1")
)
begin
File.delete(
File.join(Backup.base_directory, 'tmp', 'test', "#{filename}.part1")
)
rescue Errno::ENOENT
end
end
end
end