Commit 6586856a authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Use a new admin runners path when reseting runners token

parent b0e013d7bbe4
......@@ -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
......
......@@ -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}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment