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

Use a new admin runners path when reseting runners token

parent 76a17d4f
...@@ -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
......
...@@ -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}")
......
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