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:
authorRémy Coutable <remy@rymai.me>2016-12-01 18:24:35 +0300
committerRémy Coutable <remy@rymai.me>2016-12-01 21:22:46 +0300
commit2c0bcefdc6af442f67f74c6124fc1a9cbacd2831 (patch)
tree92ec5cadff49ec121abae6084c3cee8ccc6c7049 /spec/tasks
parent8146ad819e626439ac16aa473f10112ddbcf01cd (diff)
Don't allow to specify a repo or version when installing Workhorse
The task will use the canonical repo and the required version. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/workhorse_rake_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/tasks/gitlab/workhorse_rake_spec.rb b/spec/tasks/gitlab/workhorse_rake_spec.rb
index b695abce091..6de66c3cf07 100644
--- a/spec/tasks/gitlab/workhorse_rake_spec.rb
+++ b/spec/tasks/gitlab/workhorse_rake_spec.rb
@@ -41,32 +41,6 @@ describe 'gitlab:workhorse namespace rake task' do
run_rake_task('gitlab:workhorse:install', clone_path)
end
-
- context 'given a specific repo' do
- before do
- expect(ENV).to receive(:[]).with('GITLAB_WORKHORSE_REPO').and_return('https://gitlab.com/user1/gitlab-workhorse.git')
- end
-
- it 'calls checkout_or_clone_tag with the given repo' do
- expect_any_instance_of(Object).
- to receive(:checkout_or_clone_tag).with(tag: tag, repo: 'https://gitlab.com/user1/gitlab-workhorse.git', target_dir: clone_path)
-
- run_rake_task('gitlab:workhorse:install', clone_path)
- end
- end
-
- context 'given a specific version' do
- before do
- allow(ENV).to receive(:[]).with('GITLAB_WORKHORSE_VERSION').and_return('42.42.0')
- end
-
- it 'calls checkout_or_clone_tag with the given repo' do
- expect_any_instance_of(Object).
- to receive(:checkout_or_clone_tag).with(tag: 'v42.42.0', repo: repo, target_dir: clone_path)
-
- run_rake_task('gitlab:workhorse:install', clone_path)
- end
- end
end
describe 'gmake/make' do