summaryrefslogtreecommitdiff
path: root/spec/javascripts/fixtures/snippet.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/snippet.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/snippet.rb')
-rw-r--r--spec/javascripts/fixtures/snippet.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/snippet.rb b/spec/javascripts/fixtures/snippet.rb
index 01bfb87b0c1..fa97f352e31 100644
--- a/spec/javascripts/fixtures/snippet.rb
+++ b/spec/javascripts/fixtures/snippet.rb
@@ -18,6 +18,10 @@ describe SnippetsController, '(JavaScript fixtures)', type: :controller do
sign_in(admin)
end
+ after do
+ remove_repository(project)
+ end
+
it 'snippets/show.html.raw' do |example|
get(:show, id: snippet.to_param)