clear tmp image uploads after you run tests
This commit is contained in:
parent
65ecfafc4e
commit
cd4c792908
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ RSpec.configure do |config|
|
||||||
config.before(:each, :type => :controller) do
|
config.before(:each, :type => :controller) do
|
||||||
self.class.render_views
|
self.class.render_views
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config.after(:all) do
|
||||||
|
`rm -rf #{Rails.root}/tmp/uploads/*`
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
disable_typhoeus
|
disable_typhoeus
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue