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
6757aaa1
Commit
6757aaa1
authored
Dec 14, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve build status specs contexts descriptions
parent
ac115a9e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
4 deletions
+6
-4
app/views/ci/status/_badge.html.haml
app/views/ci/status/_badge.html.haml
+2
-0
spec/lib/gitlab/ci/status/build/cancelable_spec.rb
spec/lib/gitlab/ci/status/build/cancelable_spec.rb
+1
-1
spec/lib/gitlab/ci/status/build/play_spec.rb
spec/lib/gitlab/ci/status/build/play_spec.rb
+1
-1
spec/lib/gitlab/ci/status/build/retryable_spec.rb
spec/lib/gitlab/ci/status/build/retryable_spec.rb
+1
-1
spec/lib/gitlab/ci/status/build/stop_spec.rb
spec/lib/gitlab/ci/status/build/stop_spec.rb
+1
-1
No files found.
app/views/ci/status/_badge.html.haml
View file @
6757aaa1
-
status
=
local_assigns
.
fetch
(
:status
)
-
if
status
.
has_details?
=
link_to
status
.
details_path
,
class:
"ci-status ci-
#{
status
}
"
do
=
custom_icon
(
status
.
icon
)
...
...
spec/lib/gitlab/ci/status/build/cancelable_spec.rb
View file @
6757aaa1
...
...
@@ -65,7 +65,7 @@ describe Gitlab::Ci::Status::Build::Cancelable do
describe
'.matches?'
do
subject
{
described_class
.
matches?
(
build
,
user
)
}
context
'build is cancelable'
do
context
'
when
build is cancelable'
do
let
(
:build
)
do
create
(
:ci_build
,
:running
)
end
...
...
spec/lib/gitlab/ci/status/build/play_spec.rb
View file @
6757aaa1
...
...
@@ -51,7 +51,7 @@ describe Gitlab::Ci::Status::Build::Play do
describe
'.matches?'
do
subject
{
described_class
.
matches?
(
build
,
user
)
}
context
'build is playable'
do
context
'
when
build is playable'
do
context
'when build stops an environment'
do
let
(
:build
)
do
create
(
:ci_build
,
:playable
,
:teardown_environment
)
...
...
spec/lib/gitlab/ci/status/build/retryable_spec.rb
View file @
6757aaa1
...
...
@@ -65,7 +65,7 @@ describe Gitlab::Ci::Status::Build::Retryable do
describe
'.matches?'
do
subject
{
described_class
.
matches?
(
build
,
user
)
}
context
'build is retryable'
do
context
'
when
build is retryable'
do
let
(
:build
)
do
create
(
:ci_build
,
:success
)
end
...
...
spec/lib/gitlab/ci/status/build/stop_spec.rb
View file @
6757aaa1
...
...
@@ -53,7 +53,7 @@ describe Gitlab::Ci::Status::Build::Stop do
describe
'.matches?'
do
subject
{
described_class
.
matches?
(
build
,
user
)
}
context
'build is playable'
do
context
'
when
build is playable'
do
context
'when build stops an environment'
do
let
(
:build
)
do
create
(
:ci_build
,
:playable
,
:teardown_environment
)
...
...
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