diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-01 16:24:35 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-01 19:22:46 +0100 |
commit | 2c0bcefdc6af442f67f74c6124fc1a9cbacd2831 (patch) | |
tree | 92ec5cadff49ec121abae6084c3cee8ccc6c7049 /spec/tasks | |
parent | 8146ad819e626439ac16aa473f10112ddbcf01cd (diff) | |
download | gitlab-ce-2c0bcefdc6af442f67f74c6124fc1a9cbacd2831.tar.gz |
Don't allow to specify a repo or version when installing Workhorseremove-gitlab-workhorse-version-option-from-install-task
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.rb | 26 |
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 |