Skip to content

Commit

Permalink
Make sure to remove temp file if temp file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max committed Jul 5, 2021
1 parent 4d03ce0 commit 90196f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def teardown
end

def remove_temp_file
File.unlink(@temp_file)
File.unlink(@temp_file) if @temp_file
@temp_file = nil
end

Expand Down

0 comments on commit 90196f3

Please sign in to comment.