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:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-12-08 13:58:10 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-08 14:01:15 +0300
commitb5f6a5f91f1b39d710f33a010f2d4545fb914bd6 (patch)
tree16cb5077ab621841c57116dbce5f83768619caf2 /spec/services/ci/create_pipeline_service_spec.rb
parent865341acf881fc2e0e517acc164c69bcdda941f9 (diff)
Add Chain::Command specs
Diffstat (limited to 'spec/services/ci/create_pipeline_service_spec.rb')
-rw-r--r--spec/services/ci/create_pipeline_service_spec.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb
index be4abf11cf4..41ce81e0651 100644
--- a/spec/services/ci/create_pipeline_service_spec.rb
+++ b/spec/services/ci/create_pipeline_service_spec.rb
@@ -519,21 +519,16 @@ describe Ci::CreatePipelineService do
end
end
- context 'when pipelie is running for a tag' do
+ context 'when pipeline is running for a tag' do
before do
- allow_any_instance_of(Repository)
- .to receive(:tag_exists?).and_return(false)
- allow_any_instance_of(Repository)
- .to receive(:tag_exists?).with('refs/tags/mytag').and_return(true)
-
config = YAML.dump(test: { script: 'test', only: ['branches'] },
- deploy: { script: 'deploy', only: ['tags'] })
+ deploy: { script: 'deploy', only: ['tags'] })
stub_ci_pipeline_yaml_file(config)
end
it 'creates a tagged pipeline' do
- pipeline = execute_service(ref: 'mytag')
+ pipeline = execute_service(ref: 'v1.0.0')
expect(pipeline.tag?).to be true
end