Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-08-23 02:19:35 +0300
committerGabriel Mazetto <brodock@gmail.com>2017-08-30 21:22:48 +0300
commita882026bdfc770ecfac70bfc88a409ec010f06c9 (patch)
treea8418c7eb6e988dbd9644b82f1b3f1d2f6693dda /spec/support
parent8f178c4222d917b5f2878beb97642bff0ee5345e (diff)
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/support')
-rw-r--r--spec/support/javascript_fixtures_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/javascript_fixtures_helpers.rb b/spec/support/javascript_fixtures_helpers.rb
index aace4b3adee..923c8080e6c 100644
--- a/spec/support/javascript_fixtures_helpers.rb
+++ b/spec/support/javascript_fixtures_helpers.rb
@@ -31,6 +31,10 @@ module JavaScriptFixturesHelpers
File.write(fixture_file_name, fixture)
end
+ def remove_repository(project)
+ Gitlab::Shell.new.remove_repository(project.repository_storage_path, project.disk_path)
+ end
+
private
# Private: Prepare a response object for use as a frontend fixture