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
Tatuya Kamada
gitlab-ce
Commits
4ff3ef6f
Commit
4ff3ef6f
authored
Jul 18, 2016
by
ubudzisz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add modification to commit title test
add modification to commit title test add empty line
parent
af44c0ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
spec/views/projects/builds/show.html.haml_spec.rb
spec/views/projects/builds/show.html.haml_spec.rb
+13
-9
No files found.
spec/views/projects/builds/show.html.haml_spec.rb
View file @
4ff3ef6f
...
...
@@ -4,7 +4,10 @@ describe 'projects/builds/show' do
include
Devise
::
TestHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
,
sha:
project
.
commit
.
id
)
end
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
before
do
...
...
@@ -36,13 +39,14 @@ describe 'projects/builds/show' do
end
end
describe
'
projects/builds/show/commit title
'
do
let
(
:commit_title
)
{
build
.
project
.
commit
.
title
}
describe
'
commit title in sidebar
'
do
let
(
:commit_title
)
{
project
.
commit
.
title
}
it
'shows commit title'
do
within
(
'p.build-light-text.append-bottom-0'
)
do
expect
(
rendered
).
to
have_content
(
commit_title
)
end
it
'shows commit title and not show commit message'
do
render
expect
(
rendered
).
to
have_css
(
'p.build-light-text.append-bottom-0'
,
text:
/\A\n
#{
Regexp
.
escape
(
commit_title
)
}
\n\Z/
)
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