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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e585aa15
Commit
e585aa15
authored
Apr 03, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pipeline bridge presenter
parent
99fe9870
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
app/presenters/ci/bridge_presenter.rb
app/presenters/ci/bridge_presenter.rb
+9
-0
spec/presenters/ci/bridge_presenter_spec.rb
spec/presenters/ci/bridge_presenter_spec.rb
+15
-0
No files found.
app/presenters/ci/bridge_presenter.rb
0 → 100644
View file @
e585aa15
# frozen_string_literal: true
module
Ci
class
BridgePresenter
<
CommitStatusPresenter
def
detailed_status
@detailed_status
||=
subject
.
detailed_status
(
user
)
end
end
end
spec/presenters/ci/bridge_presenter_spec.rb
0 → 100644
View file @
e585aa15
require
'spec_helper'
describe
Ci
::
BridgePresenter
do
set
(
:project
)
{
create
(
:project
)
}
set
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
set
(
:bridge
)
{
create
(
:ci_bridge
,
pipeline:
pipeline
,
status: :failed
)
}
subject
(
:presenter
)
do
described_class
.
new
(
bridge
)
end
it
'presents information about recoverable state'
do
expect
(
presenter
).
to
be_recoverable
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