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
Jérome Perrin
gitlab-ce
Commits
b13502ef
Commit
b13502ef
authored
Sep 09, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for linter values visibility
parent
375072aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
app/views/ci/lints/_create.html.haml
app/views/ci/lints/_create.html.haml
+1
-1
spec/views/ci/lints/show.html.haml_spec.rb
spec/views/ci/lints/show.html.haml_spec.rb
+33
-0
No files found.
app/views/ci/lints/_create.html.haml
View file @
b13502ef
...
...
@@ -21,7 +21,7 @@
%br
%b
Tag list:
=
build
[
:tag_list
]
=
build
[
:tag_list
]
&&
build
[
:tag_list
].
join
(
", "
)
%br
%b
Refs only:
=
build
[
:only
]
&&
build
[
:only
].
join
(
", "
)
...
...
spec/views/ci/lints/show.html.haml_spec.rb
0 → 100644
View file @
b13502ef
require
'spec_helper'
describe
'ci/lints/show'
do
let
(
:content
)
do
{
build_template:
{
script:
'./build.sh'
,
tags:
[
'dotnet'
],
only:
[
'test@dude/repo'
],
except:
[
'deploy'
],
environment:
'testing'
}
}
end
let
(
:config_processor
)
{
Ci
::
GitlabCiYamlProcessor
.
new
(
YAML
.
dump
(
content
))
}
context
'when content is valid'
do
before
do
assign
(
:status
,
true
)
assign
(
:builds
,
config_processor
.
builds
)
assign
(
:stages
,
config_processor
.
stages
)
end
it
'shows correct values'
do
render
expect
(
rendered
).
to
have_content
(
'Tag list: dotnet'
)
expect
(
rendered
).
to
have_content
(
'Refs only: test@dude/repo'
)
expect
(
rendered
).
to
have_content
(
'Refs except: deploy'
)
expect
(
rendered
).
to
have_content
(
'Environment: testing'
)
expect
(
rendered
).
to
have_content
(
'When: on_success'
)
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