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
4622f7e2
Commit
4622f7e2
authored
Oct 18, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reload pipeline settings when saving new settings
parent
c9d7ba4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/views/projects/pipelines_settings/show.html.haml
app/views/projects/pipelines_settings/show.html.haml
+1
-1
spec/features/pipelines_settings_spec.rb
spec/features/pipelines_settings_spec.rb
+2
-1
No files found.
app/views/projects/pipelines_settings/show.html.haml
View file @
4622f7e2
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.col-lg-9
.col-lg-9
%h5
.prepend-top-0
%h5
.prepend-top-0
Pipelines
Pipelines
=
form_for
@project
,
url:
namespace_project_pipelines_settings_path
(
@project
.
namespace
.
becomes
(
Namespace
),
@project
)
,
remote:
true
,
authenticity_token:
true
do
|
f
|
=
form_for
@project
,
url:
namespace_project_pipelines_settings_path
(
@project
.
namespace
.
becomes
(
Namespace
),
@project
)
do
|
f
|
%fieldset
.builds-feature
%fieldset
.builds-feature
-
unless
@repository
.
gitlab_ci_yml
-
unless
@repository
.
gitlab_ci_yml
.form-group
.form-group
...
...
spec/features/pipelines_settings_spec.rb
View file @
4622f7e2
...
@@ -24,11 +24,12 @@ feature "Pipelines settings", feature: true do
...
@@ -24,11 +24,12 @@ feature "Pipelines settings", feature: true do
context
'for master'
do
context
'for master'
do
given
(
:role
)
{
:master
}
given
(
:role
)
{
:master
}
scenario
'be allowed to change'
do
scenario
'be allowed to change'
,
js:
true
do
fill_in
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
fill_in
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
click_on
'Save changes'
click_on
'Save changes'
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
.
status_code
).
to
eq
(
200
)
expect
(
page
).
to
have_button
(
'Save changes'
,
disabled:
false
)
expect
(
page
).
to
have_field
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
expect
(
page
).
to
have_field
(
'Test coverage parsing'
,
with:
'coverage_regex'
)
end
end
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