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
3efbf92e
Commit
3efbf92e
authored
Sep 12, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve tests grammar
parent
b13502ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
spec/views/ci/lints/show.html.haml_spec.rb
spec/views/ci/lints/show.html.haml_spec.rb
+5
-3
No files found.
spec/views/ci/lints/show.html.haml_spec.rb
View file @
3efbf92e
...
@@ -2,7 +2,8 @@ require 'spec_helper'
...
@@ -2,7 +2,8 @@ require 'spec_helper'
describe
'ci/lints/show'
do
describe
'ci/lints/show'
do
let
(
:content
)
do
let
(
:content
)
do
{
build_template:
{
{
build_template:
{
script:
'./build.sh'
,
script:
'./build.sh'
,
tags:
[
'dotnet'
],
tags:
[
'dotnet'
],
only:
[
'test@dude/repo'
],
only:
[
'test@dude/repo'
],
...
@@ -11,16 +12,17 @@ describe 'ci/lints/show' do
...
@@ -11,16 +12,17 @@ describe 'ci/lints/show' do
}
}
}
}
end
end
let
(
:config_processor
)
{
Ci
::
GitlabCiYamlProcessor
.
new
(
YAML
.
dump
(
content
))
}
let
(
:config_processor
)
{
Ci
::
GitlabCiYamlProcessor
.
new
(
YAML
.
dump
(
content
))
}
context
'when content is valid'
do
context
'when
the
content is valid'
do
before
do
before
do
assign
(
:status
,
true
)
assign
(
:status
,
true
)
assign
(
:builds
,
config_processor
.
builds
)
assign
(
:builds
,
config_processor
.
builds
)
assign
(
:stages
,
config_processor
.
stages
)
assign
(
:stages
,
config_processor
.
stages
)
end
end
it
'shows correct values'
do
it
'shows
the
correct values'
do
render
render
expect
(
rendered
).
to
have_content
(
'Tag list: dotnet'
)
expect
(
rendered
).
to
have_content
(
'Tag list: dotnet'
)
...
...
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