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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
79c29a67
Commit
79c29a67
authored
Jul 21, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for multiple trigger variables view
parent
4f2ef9a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
spec/views/projects/builds/show.html.haml_spec.rb
spec/views/projects/builds/show.html.haml_spec.rb
+18
-1
No files found.
spec/views/projects/builds/show.html.haml_spec.rb
View file @
79c29a67
...
@@ -49,4 +49,21 @@ describe 'projects/builds/show' do
...
@@ -49,4 +49,21 @@ describe 'projects/builds/show' do
text:
/\A\n
#{
Regexp
.
escape
(
commit_title
)
}
\n\Z/
)
text:
/\A\n
#{
Regexp
.
escape
(
commit_title
)
}
\n\Z/
)
end
end
end
end
describe
'shows trigger variables in sidebar'
do
let
(
:trigger
)
{
create
(
:ci_trigger
,
project:
project
)
}
let
(
:trigger_request
)
{
create
(
:ci_trigger_request_with_variables
,
pipeline:
pipeline
,
trigger:
trigger
)
}
before
do
build
.
trigger_request
=
trigger_request
end
it
'shows trigger variables in separate lines'
do
trigger_request
.
update_attributes
(
variables:
{
TRIGGER_KEY
:
'TRIGGER_VALUE'
,
TRIGGER_KEY_1
:
'TRIGGER_VALUE_1'
})
render
expect
(
rendered
).
to
have_css
(
'code'
,
text:
/\A
#{
Regexp
.
escape
(
'TRIGGER_KEY=TRIGGER_VALUE'
)
}
\Z/
)
expect
(
rendered
).
to
have_css
(
'code'
,
text:
/\A
#{
Regexp
.
escape
(
'TRIGGER_KEY_1=TRIGGER_VALUE_1'
)
}
\Z/
)
end
end
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