spec/spec_helper.rb in hanami-2.0.3 vs spec/spec_helper.rb in hanami-2.1.0.beta1
- old
+ new
@@ -21,8 +21,8 @@
RSpec.configure do |config|
config.after(:suite) do
# TODO: Find out what causes logger to create this dir when running specs.
# There's probably a test app class being created somewhere with root
# not pointing to a tmp dir.
- FileUtils.rm_r(LOG_DIR) if LOG_DIR.exist?
+ FileUtils.rm_rf(LOG_DIR) if LOG_DIR.exist?
end
end