Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
fd4e93eef8c6
Commit
6586856a
authored
Dec 14, 2015
by
Grzegorz Bizon
Browse files
Use a new admin runners path when reseting runners token
parent
b0e013d7bbe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/admin/application_settings_controller.rb
View file @
fd4e93ee
...
...
@@ -16,7 +16,7 @@ def update
def
reset_runners_token
@application_setting
.
reset_runners_registration_token!
flash
[
:notice
]
=
'New runners registration token has been generated!'
redirect_to
ci_
admin_runners_path
redirect_to
admin_runners_path
end
private
...
...
spec/features/admin/admin_runners_spec.rb
View file @
fd4e93ee
...
...
@@ -64,7 +64,7 @@
describe
'runners registration token'
do
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
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