spec/spec_helper.rb in family_gallery-0.0.5 vs spec/spec_helper.rb in family_gallery-0.0.6

- old
+ new

@@ -19,9 +19,15 @@ config.expect_with :rspec do |c| c.syntax = [:should, :expect] end + config.after(:all) do + if Rails.env.test? + FileUtils.rm_rf(Dir["#{Rails.root}/spec/test_files/0"]) + end + end + config.include Devise::TestHelpers, type: :controller config.infer_spec_type_from_file_location! config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false end