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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-19 15:57:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-19 15:57:54 +0300
commit419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch)
tree1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /spec/helpers/blob_helper_spec.rb
parent1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff)
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'spec/helpers/blob_helper_spec.rb')
-rw-r--r--spec/helpers/blob_helper_spec.rb55
1 files changed, 0 insertions, 55 deletions
diff --git a/spec/helpers/blob_helper_spec.rb b/spec/helpers/blob_helper_spec.rb
index 6d97afd4c78..e832fa2718a 100644
--- a/spec/helpers/blob_helper_spec.rb
+++ b/spec/helpers/blob_helper_spec.rb
@@ -469,61 +469,6 @@ RSpec.describe BlobHelper do
end
end
- describe '#editing_ci_config?' do
- let(:project) { build(:project) }
-
- subject { helper.editing_ci_config? }
-
- before do
- assign(:project, project)
- assign(:path, path)
- end
-
- context 'when path is nil' do
- let(:path) { nil }
-
- it { is_expected.to be_falsey }
- end
-
- context 'when path is not a ci file' do
- let(:path) { 'some-file.txt' }
-
- it { is_expected.to be_falsey }
- end
-
- context 'when path ends is gitlab-ci.yml' do
- let(:path) { '.gitlab-ci.yml' }
-
- it { is_expected.to be_truthy }
- end
-
- context 'when path ends with gitlab-ci.yml' do
- let(:path) { 'template.gitlab-ci.yml' }
-
- it { is_expected.to be_truthy }
- end
-
- context 'with custom ci paths' do
- let(:path) { 'path/to/ci.yaml' }
-
- before do
- project.ci_config_path = 'path/to/ci.yaml'
- end
-
- it { is_expected.to be_truthy }
- end
-
- context 'with custom ci config and path' do
- let(:path) { 'path/to/template.gitlab-ci.yml' }
-
- before do
- project.ci_config_path = 'ci/path/.gitlab-ci.yml@another-group/another-project'
- end
-
- it { is_expected.to be_truthy }
- end
- end
-
describe '#vue_blob_app_data' do
let(:blob) { fake_blob(path: 'file.md', size: 2.megabytes) }
let(:project) { build_stubbed(:project) }