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:
Diffstat (limited to 'spec/lib/gitlab/ci/project_config_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/project_config_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/ci/project_config_spec.rb b/spec/lib/gitlab/ci/project_config_spec.rb
index 13ef0939ddd..6a4af3c61bf 100644
--- a/spec/lib/gitlab/ci/project_config_spec.rb
+++ b/spec/lib/gitlab/ci/project_config_spec.rb
@@ -45,9 +45,9 @@ RSpec.describe Gitlab::Ci::ProjectConfig, feature_category: :pipeline_compositio
before do
allow(project.repository)
- .to receive(:gitlab_ci_yml_for)
+ .to receive(:blob_at)
.with(sha, ci_config_path)
- .and_return('the-content')
+ .and_return(instance_double(Blob, empty?: false))
end
it 'returns root config including the local custom file' do
@@ -122,9 +122,9 @@ RSpec.describe Gitlab::Ci::ProjectConfig, feature_category: :pipeline_compositio
before do
allow(project.repository)
- .to receive(:gitlab_ci_yml_for)
+ .to receive(:blob_at)
.with(sha, '.gitlab-ci.yml')
- .and_return('the-content')
+ .and_return(instance_double(Blob, empty?: false))
end
it 'returns root config including the canonical CI config file' do