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
Boxiang Sun
gitlab-ce
Commits
448c695c
Commit
448c695c
authored
Mar 11, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert adding favicon to extended statuses. Change extended statues specs to use core status
parent
74f13e0d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
19 deletions
+1
-19
lib/gitlab/ci/status/build/failed_allowed.rb
lib/gitlab/ci/status/build/failed_allowed.rb
+0
-4
lib/gitlab/ci/status/success_warning.rb
lib/gitlab/ci/status/success_warning.rb
+0
-4
spec/lib/gitlab/ci/status/build/factory_spec.rb
spec/lib/gitlab/ci/status/build/factory_spec.rb
+1
-1
spec/lib/gitlab/ci/status/build/failed_allowed_spec.rb
spec/lib/gitlab/ci/status/build/failed_allowed_spec.rb
+0
-6
spec/lib/gitlab/ci/status/success_warning_spec.rb
spec/lib/gitlab/ci/status/success_warning_spec.rb
+0
-4
No files found.
lib/gitlab/ci/status/build/failed_allowed.rb
View file @
448c695c
...
@@ -13,10 +13,6 @@ module Gitlab
...
@@ -13,10 +13,6 @@ module Gitlab
'icon_status_warning'
'icon_status_warning'
end
end
def
favicon
'favicon_status_warning'
end
def
group
def
group
'failed_with_warnings'
'failed_with_warnings'
end
end
...
...
lib/gitlab/ci/status/success_warning.rb
View file @
448c695c
...
@@ -20,10 +20,6 @@ module Gitlab
...
@@ -20,10 +20,6 @@ module Gitlab
'icon_status_warning'
'icon_status_warning'
end
end
def
favicon
'favicon_status_warning'
end
def
group
def
group
'success_with_warnings'
'success_with_warnings'
end
end
...
...
spec/lib/gitlab/ci/status/build/factory_spec.rb
View file @
448c695c
...
@@ -81,7 +81,7 @@ describe Gitlab::Ci::Status::Build::Factory do
...
@@ -81,7 +81,7 @@ describe Gitlab::Ci::Status::Build::Factory do
it
'fabricates status with correct details'
do
it
'fabricates status with correct details'
do
expect
(
status
.
text
).
to
eq
'failed'
expect
(
status
.
text
).
to
eq
'failed'
expect
(
status
.
icon
).
to
eq
'icon_status_warning'
expect
(
status
.
icon
).
to
eq
'icon_status_warning'
expect
(
status
.
favicon
).
to
eq
'favicon_status_
warning
'
expect
(
status
.
favicon
).
to
eq
'favicon_status_
failed
'
expect
(
status
.
label
).
to
eq
'failed (allowed to fail)'
expect
(
status
.
label
).
to
eq
'failed (allowed to fail)'
expect
(
status
).
to
have_details
expect
(
status
).
to
have_details
expect
(
status
).
to
have_action
expect
(
status
).
to
have_action
...
...
spec/lib/gitlab/ci/status/build/failed_allowed_spec.rb
View file @
448c695c
...
@@ -22,12 +22,6 @@ describe Gitlab::Ci::Status::Build::FailedAllowed do
...
@@ -22,12 +22,6 @@ describe Gitlab::Ci::Status::Build::FailedAllowed do
end
end
end
end
describe
'#favicon'
do
it
'returns a warning favicon'
do
expect
(
subject
.
favicon
).
to
eq
'favicon_status_warning'
end
end
describe
'#label'
do
describe
'#label'
do
it
'returns information about failed but allowed to fail status'
do
it
'returns information about failed but allowed to fail status'
do
expect
(
subject
.
label
).
to
eq
'failed (allowed to fail)'
expect
(
subject
.
label
).
to
eq
'failed (allowed to fail)'
...
...
spec/lib/gitlab/ci/status/success_warning_spec.rb
View file @
448c695c
...
@@ -17,10 +17,6 @@ describe Gitlab::Ci::Status::SuccessWarning do
...
@@ -17,10 +17,6 @@ describe Gitlab::Ci::Status::SuccessWarning do
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_warning'
}
it
{
expect
(
subject
.
icon
).
to
eq
'icon_status_warning'
}
end
end
describe
'#favicon'
do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_warning'
}
end
describe
'#group'
do
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'success_with_warnings'
}
it
{
expect
(
subject
.
group
).
to
eq
'success_with_warnings'
}
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