diff options
Diffstat (limited to 'spec/helpers/ci/pipeline_editor_helper_spec.rb')
-rw-r--r-- | spec/helpers/ci/pipeline_editor_helper_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/helpers/ci/pipeline_editor_helper_spec.rb b/spec/helpers/ci/pipeline_editor_helper_spec.rb index b15569f03c7..b844cc2e22b 100644 --- a/spec/helpers/ci/pipeline_editor_helper_spec.rb +++ b/spec/helpers/ci/pipeline_editor_helper_spec.rb @@ -88,6 +88,17 @@ RSpec.describe Ci::PipelineEditorHelper do end end + context 'with a project with no repository' do + let(:project) { create(:project) } + + it 'returns pipeline editor data' do + expect(pipeline_editor_data).to include({ + "pipeline_etag" => '', + "total-branches" => 0 + }) + end + end + context 'with a non-default branch name' do let(:user) { create(:user) } |