Skip to content
Snippets Groups Projects
Commit 1a581a6a authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Use a previous approach for cycle analytics dummy pipeline

parent 33a5157a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1523,7 +1523,7 @@ describe Project, models: true do
expect(project.ci_config_path).to eq('foo/.gitlab_ci.yml')
end
 
it 'sets a string but remove all leading slashes and null characters' do
it 'sets a string but removes all leading slashes and null characters' do
project.update!(ci_config_path: "///f\0oo/\0/.gitlab_ci.yml")
 
expect(project.ci_config_path).to eq('foo//.gitlab_ci.yml')
Loading
Loading
Loading
Loading
@@ -74,10 +74,9 @@ module CycleAnalyticsHelpers
 
def dummy_pipeline
@dummy_pipeline ||=
project.pipelines.build(
Ci::Pipeline.new(
sha: project.repository.commit('master').sha,
ref: 'master',
source: :push)
project: project)
end
 
def new_dummy_job(environment)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment