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
Kazuhiko Shiozaki
gitlab-ce
Commits
6586856a
Commit
6586856a
authored
Dec 14, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a new admin runners path when reseting runners token
parent
76a17d4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/admin/application_settings_controller.rb
app/controllers/admin/application_settings_controller.rb
+1
-1
spec/features/admin/admin_runners_spec.rb
spec/features/admin/admin_runners_spec.rb
+1
-1
No files found.
app/controllers/admin/application_settings_controller.rb
View file @
6586856a
...
@@ -16,7 +16,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
...
@@ -16,7 +16,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
def
reset_runners_token
def
reset_runners_token
@application_setting
.
reset_runners_registration_token!
@application_setting
.
reset_runners_registration_token!
flash
[
:notice
]
=
'New runners registration token has been generated!'
flash
[
:notice
]
=
'New runners registration token has been generated!'
redirect_to
ci_
admin_runners_path
redirect_to
admin_runners_path
end
end
private
private
...
...
spec/features/admin/admin_runners_spec.rb
View file @
6586856a
...
@@ -64,7 +64,7 @@ describe "Admin Runners" do
...
@@ -64,7 +64,7 @@ describe "Admin Runners" do
describe
'runners registration token'
do
describe
'runners registration token'
do
let!
(
:token
)
{
current_application_settings
.
ensure_runners_registration_token
}
let!
(
:token
)
{
current_application_settings
.
ensure_runners_registration_token
}
before
{
visit
ci_
admin_runners_path
}
before
{
visit
admin_runners_path
}
it
'has a registration token'
do
it
'has a registration token'
do
expect
(
page
).
to
have_content
(
"Registration token is
#{
token
}
"
)
expect
(
page
).
to
have_content
(
"Registration token is
#{
token
}
"
)
...
...
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