Permalink
Browse files

Merge pull request #7192 from bogdan/sqlite_tests_fix

More polite cleanup for sqlite tests
  • Loading branch information...
2 parents 07ecaf5 + fd0004b commit f7b40166b2e5ad8845c9b9c81681b450ddd672dc @carlosantoniodasilva carlosantoniodasilva committed Jul 29, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/test/cases/tasks/sqlite_rake_test.rb
@@ -162,8 +162,8 @@ def test_structure_dump
assert File.exists?(dbfile)
assert File.exists?(filename)
ensure
- FileUtils.rm(filename)
- FileUtils.rm(dbfile)
+ FileUtils.rm_f(filename)
+ FileUtils.rm_f(dbfile)
end
end
@@ -184,8 +184,8 @@ def test_structure_load
ActiveRecord::Tasks::DatabaseTasks.structure_load @configuration, filename, '/rails/root'
assert File.exists?(dbfile)
ensure
- FileUtils.rm(filename)
- FileUtils.rm(dbfile)
+ FileUtils.rm_f(filename)
+ FileUtils.rm_f(dbfile)
end
end
end

0 comments on commit f7b4016

Please sign in to comment.