summaryrefslogtreecommitdiff
path: root/spec/javascripts/fixtures/prometheus_service.rb
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-08-23 01:19:35 +0200
committerGabriel Mazetto <brodock@gmail.com>2017-08-30 20:22:48 +0200
commita882026bdfc770ecfac70bfc88a409ec010f06c9 (patch)
treea8418c7eb6e988dbd9644b82f1b3f1d2f6693dda /spec/javascripts/fixtures/prometheus_service.rb
parent8f178c4222d917b5f2878beb97642bff0ee5345e (diff)
downloadgitlab-ce-a882026bdfc770ecfac70bfc88a409ec010f06c9.tar.gz
Cleaning up repositories for javascript fixture specs to work correctly
We need to cleanup after each execution so we can still re-use the same paths and prevent collision with the on disk validation
Diffstat (limited to 'spec/javascripts/fixtures/prometheus_service.rb')
-rw-r--r--spec/javascripts/fixtures/prometheus_service.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/prometheus_service.rb b/spec/javascripts/fixtures/prometheus_service.rb
index 7968c9425f2..f95f8038ffb 100644
--- a/spec/javascripts/fixtures/prometheus_service.rb
+++ b/spec/javascripts/fixtures/prometheus_service.rb
@@ -18,6 +18,10 @@ describe Projects::ServicesController, '(JavaScript fixtures)', type: :controlle
sign_in(admin)
end
+ after do
+ remove_repository(project)
+ end
+
it 'services/prometheus/prometheus_service.html.raw' do |example|
get :edit,
namespace_id: namespace,