BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1a581a6a
Commit
1a581a6a
authored
Jul 05, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a previous approach for cycle analytics dummy pipeline
parent
33a5157a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
project_spec.rb
spec/models/project_spec.rb
+1
-1
cycle_analytics_helpers.rb
spec/support/cycle_analytics_helpers.rb
+2
-3
No files found.
spec/models/project_spec.rb
View file @
1a581a6a
...
...
@@ -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 remove
s
all leading slashes and null characters'
do
project
.
update!
(
ci_config_path:
"///f
\0
oo/
\0
/.gitlab_ci.yml"
)
expect
(
project
.
ci_config_path
).
to
eq
(
'foo//.gitlab_ci.yml'
)
...
...
spec/support/cycle_analytics_helpers.rb
View file @
1a581a6a
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment