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
iv
gitlab-ce
Commits
3b6915d8
Commit
3b6915d8
authored
Sep 23, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for CiStatusHelper and changelog item
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
21dfaa00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
CHANGELOG
CHANGELOG
+1
-1
spec/helpers/ci_status_helper_spec.rb
spec/helpers/ci_status_helper_spec.rb
+18
-0
No files found.
CHANGELOG
View file @
3b6915d8
Please view this file on the master branch, on stable branches it's out of date.
Please view this file on the master branch, on stable branches it's out of date.
v 8.1.0 (unreleased)
v 8.1.0 (unreleased)
-
-
Show CI status on all pages where commits list is rendered
v 8.0.1
v 8.0.1
- Improve CI migration procedure and documentation
- Improve CI migration procedure and documentation
...
...
spec/helpers/ci_status_helper_spec.rb
0 → 100644
View file @
3b6915d8
require
'spec_helper'
describe
CiStatusHelper
do
include
IconsHelper
let
(
:success_commit
)
{
double
(
"Ci::Commit"
,
status:
'success'
)
}
let
(
:failed_commit
)
{
double
(
"Ci::Commit"
,
status:
'failed'
)
}
describe
'ci_status_color'
do
it
{
expect
(
ci_status_icon
(
success_commit
)).
to
include
(
'fa-check'
)
}
it
{
expect
(
ci_status_icon
(
failed_commit
)).
to
include
(
'fa-close'
)
}
end
describe
'ci_status_color'
do
it
{
expect
(
ci_status_color
(
success_commit
)).
to
eq
(
'green'
)
}
it
{
expect
(
ci_status_color
(
failed_commit
)).
to
eq
(
'red'
)
}
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