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
35cf604b
Commit
35cf604b
authored
Apr 30, 2018
by
Shinya Maeda
Committed by
Kamil Trzciński
May 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add to_param override to lookup :id path
parent
787eddd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
spec/models/ci/pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+10
-1
No files found.
spec/models/ci/pipeline_spec.rb
View file @
35cf604b
...
...
@@ -35,6 +35,15 @@ describe Ci::Pipeline, :mailer do
end
end
describe
'modules'
do
it_behaves_like
'AtomicInternalId'
do
let
(
:internal_id_attribute
)
{
:iid
}
let
(
:instance
)
{
build
(
:ci_pipeline
)
}
let
(
:scope_attrs
)
{
{
project:
instance
.
project
}
}
let
(
:usage
)
{
:ci_pipelines
}
end
end
describe
'#source'
do
context
'when creating new pipeline'
do
let
(
:pipeline
)
do
...
...
@@ -173,7 +182,7 @@ describe Ci::Pipeline, :mailer do
it
'includes all predefined variables in a valid order'
do
keys
=
subject
.
map
{
|
variable
|
variable
[
:key
]
}
expect
(
keys
).
to
eq
%w[CI_PIPELINE_ID CI_CONFIG_PATH CI_PIPELINE_SOURCE]
expect
(
keys
).
to
eq
%w[CI_PIPELINE_ID CI_
PIPELINE_IID CI_
CONFIG_PATH CI_PIPELINE_SOURCE]
end
end
...
...
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