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
8c1e9ecd
Commit
8c1e9ecd
authored
Jan 11, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected tests and changed trigger controller redirects to the ci_cd_pipelines_settings controller
parent
e4b345ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app/controllers/projects/triggers_controller.rb
app/controllers/projects/triggers_controller.rb
+3
-3
spec/features/runners_spec.rb
spec/features/runners_spec.rb
+0
-1
No files found.
app/controllers/projects/triggers_controller.rb
View file @
8c1e9ecd
...
...
@@ -4,7 +4,7 @@ class Projects::TriggersController < Projects::ApplicationController
layout
'project_settings'
def
index
redirect_to
namespace_project_settings_pipelines_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
@project
.
namespace
,
@project
)
end
def
create
...
...
@@ -12,7 +12,7 @@ class Projects::TriggersController < Projects::ApplicationController
@trigger
.
save
if
@trigger
.
valid?
redirect_to
namespace_project_settings_pipelines_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
@project
.
namespace
,
@project
)
else
@triggers
=
project
.
triggers
.
select
(
&
:persisted?
)
render
:index
...
...
@@ -22,7 +22,7 @@ class Projects::TriggersController < Projects::ApplicationController
def
destroy
trigger
.
destroy
redirect_to
namespace_project_settings_pipelines_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
@project
.
namespace
,
@project
)
end
private
...
...
spec/features/runners_spec.rb
View file @
8c1e9ecd
...
...
@@ -122,7 +122,6 @@ describe "Runners" do
scenario
'user checks default configuration'
do
visit
namespace_project_runner_path
(
project
.
namespace
,
project
,
runner
)
expect
(
page
).
to
have_content
'Can run untagged jobs Yes'
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