BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
85fc83c5
Commit
85fc83c5
authored
Jul 14, 2016
by
ubudzisz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test to view
repair rubocop test and update CHANGELOG repair rubocop test repair rubocop repair rubocop repair rubocop
parent
86df8bc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
CHANGELOG
CHANGELOG
+1
-0
show.html.haml_spec.rb
spec/views/projects/builds/show.html.haml_spec.rb
+16
-9
No files found.
CHANGELOG
View file @
85fc83c5
...
...
@@ -129,6 +129,7 @@ v 8.9.7 (unreleased)
v 8.9.6
- Fix importing of events under notes for GitLab projects
- Render only commit message title in builds
- Render only commit message title in builds (Katarzyna Kobierska Ula Budziszewska)
v 8.9.5
- Add more debug info to import/export and memory killer. !5108
...
...
spec/views/projects/builds/show.html.haml_spec.rb
View file @
85fc83c5
...
...
@@ -3,12 +3,15 @@ require 'spec_helper'
describe
'projects/builds/show'
do
include
Devise
::
TestHelpers
let
(
:build
)
{
create
(
:ci_build
)
}
let
(
:project
)
{
build
.
project
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
let
(
:commit
)
{
project
.
commit
}
before
do
assign
(
:build
,
build
)
assign
(
:project
,
project
)
assign
(
:commit_title
,
build
.
project
.
commit
.
title
)
allow
(
view
).
to
receive
(
:can?
).
and_return
(
true
)
end
...
...
@@ -22,10 +25,6 @@ describe 'projects/builds/show' do
it
'does not show retry button'
do
expect
(
rendered
).
not_to
have_link
(
'Retry'
)
end
it
'shows commit title'
do
expect
(
rendered
).
to
have_text
(
@git_commit_title
)
end
end
context
'when build is not running'
do
...
...
@@ -37,10 +36,18 @@ describe 'projects/builds/show' do
it
'shows retry button'
do
expect
(
rendered
).
to
have_link
(
'Retry'
)
end
end
it
'shows commit title'
do
expect
(
rendered
).
to
have_text
(
@git_commit_title
)
context
'show commit title'
do
before
do
build
.
run!
render
end
end
it
'show commit title'
do
within
(
'p.build-light-text.append-bottom-0'
)
do
assert
page
.
has_content?
(
commit
.
title
)
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