mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 03:26:07 +10:00
Use a new admin runners path when reseting runners token
This commit is contained in:
@@ -16,7 +16,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
|
||||
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 "Admin Runners" do
|
||||
|
||||
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}")
|
||||
|
||||
Reference in New Issue
Block a user