diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-10 00:09:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-10 00:09:22 +0300 |
commit | 017841e3c03105efd0b94e730652c5774f2c136f (patch) | |
tree | b2931e81db33138d3c32e058879a78635c0e2614 /spec/helpers/projects/ci/pipeline_editor_helper_spec.rb | |
parent | b19efd72743e22fd3b340b3c2906ba113e1390de (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/projects/ci/pipeline_editor_helper_spec.rb')
-rw-r--r-- | spec/helpers/projects/ci/pipeline_editor_helper_spec.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/helpers/projects/ci/pipeline_editor_helper_spec.rb b/spec/helpers/projects/ci/pipeline_editor_helper_spec.rb deleted file mode 100644 index 882b6548d64..00000000000 --- a/spec/helpers/projects/ci/pipeline_editor_helper_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe ::Ci::PipelineEditorHelper do - let_it_be(:project) { create(:project, :public, :repository) } - - describe '#js_pipeline_editor_data' do - before do - allow(helper).to receive(:namespace_project_new_merge_request_path).and_return('/mock/project/-/merge_requests/new') - end - - subject { helper.js_pipeline_editor_data(project) } - - it { - is_expected.to match({ - "ci-config-path": project.ci_config_path_or_default, - "commit-sha" => project.commit.sha, - "default-branch" => project.default_branch, - "empty-state-illustration-path" => match_asset_path("/assets/illustrations/empty-state/empty-dag-md.svg"), - "initial-branch-name": nil, - "lint-help-page-path" => help_page_path('ci/lint', anchor: 'validate-basic-logic-and-syntax'), - "new-merge-request-path" => '/mock/project/-/merge_requests/new', - "project-path" => project.path, - "project-full-path" => project.full_path, - "project-namespace" => project.namespace.full_path, - "yml-help-page-path" => help_page_path('ci/yaml/README') - }) - } - end -end |