Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
spec/support/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