Skip to content

Commit c6d4334

Browse files
committed
Remove cached files before testing.
1 parent f711a6a commit c6d4334

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_helper.rb

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
Rails.backtrace_cleaner.remove_silencers!
88

9+
# Remove cached files
10+
Rails.root.join('tmp').tap do |tmp|
11+
tmp.rmtree
12+
tmp.mkpath
13+
end
14+
915
# Load support files
1016
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
1117

0 commit comments

Comments
 (0)