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
4ad2fbc3
Commit
4ad2fbc3
authored
Feb 21, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken test
parent
3f7c1686
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
_info.html.haml
app/views/projects/pipelines/_info.html.haml
+1
-1
pipeline_spec.rb
spec/features/projects/pipelines/pipeline_spec.rb
+1
-1
No files found.
app/views/projects/pipelines/_info.html.haml
View file @
4ad2fbc3
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
.header-action-buttons
.header-action-buttons
-
if
can?
(
current_user
,
:update_pipeline
,
@pipeline
.
project
)
-
if
can?
(
current_user
,
:update_pipeline
,
@pipeline
.
project
)
-
if
@pipeline
.
retryable?
-
if
@pipeline
.
retryable?
=
link_to
"Retry"
,
retry_namespace_project_pipeline_path
(
@pipeline
.
project
.
namespace
,
@pipeline
.
project
,
@pipeline
.
id
),
class:
'btn btn-inverted-secondary'
,
method: :post
=
link_to
"Retry"
,
retry_namespace_project_pipeline_path
(
@pipeline
.
project
.
namespace
,
@pipeline
.
project
,
@pipeline
.
id
),
class:
'
js-retry-button
btn btn-inverted-secondary'
,
method: :post
-
if
@pipeline
.
cancelable?
-
if
@pipeline
.
cancelable?
=
link_to
"Cancel running"
,
cancel_namespace_project_pipeline_path
(
@pipeline
.
project
.
namespace
,
@pipeline
.
project
,
@pipeline
.
id
),
data:
{
confirm:
'Are you sure?'
},
class:
'btn btn-danger'
,
method: :post
=
link_to
"Cancel running"
,
cancel_namespace_project_pipeline_path
(
@pipeline
.
project
.
namespace
,
@pipeline
.
project
,
@pipeline
.
id
),
data:
{
confirm:
'Are you sure?'
},
class:
'btn btn-danger'
,
method: :post
...
...
spec/features/projects/pipelines/pipeline_spec.rb
View file @
4ad2fbc3
...
@@ -226,7 +226,7 @@ describe 'Pipeline', :feature, :js do
...
@@ -226,7 +226,7 @@ describe 'Pipeline', :feature, :js do
it
{
expect
(
page
).
not_to
have_content
(
'retried'
)
}
it
{
expect
(
page
).
not_to
have_content
(
'retried'
)
}
context
'when retrying'
do
context
'when retrying'
do
before
{
find
(
'js-retry-button'
).
trigger
(
'click'
)
}
before
{
find
(
'
.
js-retry-button'
).
trigger
(
'click'
)
}
it
{
expect
(
page
).
not_to
have_content
(
'Retry'
)
}
it
{
expect
(
page
).
not_to
have_content
(
'Retry'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.retried'
)
}
it
{
expect
(
page
).
to
have_selector
(
'.retried'
)
}
...
...
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