Commit 1a581a6a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use a previous approach for cycle analytics dummy pipeline

parent 33a5157a
......@@ -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')
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment