diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-08 15:07:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-08 15:07:59 +0300 |
commit | e3e300557f5def9bf2271735c8a620e6820dfada (patch) | |
tree | 8d0d4590518ee17eb32956e35637e11a2b8ca561 /spec/services/ci/create_pipeline_service | |
parent | a821bd6ad17e304ca93838a411410a44ee9cff9f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/ci/create_pipeline_service')
-rw-r--r-- | spec/services/ci/create_pipeline_service/custom_config_content_spec.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/services/ci/create_pipeline_service/custom_config_content_spec.rb b/spec/services/ci/create_pipeline_service/custom_config_content_spec.rb deleted file mode 100644 index 33cd6e164b0..00000000000 --- a/spec/services/ci/create_pipeline_service/custom_config_content_spec.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true -require 'spec_helper' - -describe Ci::CreatePipelineService do - let_it_be(:project) { create(:project, :repository) } - let_it_be(:user) { create(:admin) } - let(:ref) { 'refs/heads/master' } - let(:service) { described_class.new(project, user, { ref: ref }) } - - context 'custom config content' do - let(:bridge) do - double(:bridge, yaml_for_downstream: <<~YML - rspec: - script: rspec - custom: - script: custom - YML - ) - end - - subject { service.execute(:push, bridge: bridge) } - - it 'creates a pipeline using the content passed in as param' do - expect(subject).to be_persisted - expect(subject.builds.map(&:name)).to eq %w[rspec custom] - expect(subject.config_source).to eq 'bridge_source' - end - end -end |