diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-30 13:57:01 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-30 13:57:01 +0200 |
commit | 6e747d720de3d91d75b3ce189ac7d95cf5bbc74c (patch) | |
tree | 68e206ebaec43a28c5905078b379c61fb43a2928 /spec/support | |
parent | 7b11da632a60c99443ca98dd689aae2416b798b5 (diff) | |
download | gitlab-ce-6e747d720de3d91d75b3ce189ac7d95cf5bbc74c.tar.gz |
Move CarrierWave test env config to separate file
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/carrierwave.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/carrierwave.rb b/spec/support/carrierwave.rb new file mode 100644 index 00000000000..aa89afd8fb3 --- /dev/null +++ b/spec/support/carrierwave.rb @@ -0,0 +1,7 @@ +CarrierWave.root = 'tmp/tests/uploads' + +RSpec.configure do |config| + config.after(:suite) do + FileUtils.rm_rf('tmp/tests/uploads') + end +end |