Use a new admin runners path when reseting runners token

This commit is contained in:
Grzegorz Bizon
2015-12-14 14:03:58 +01:00
parent 76a17d4f54
commit 6586856a15
2 changed files with 2 additions and 2 deletions
@@ -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
+1 -1
View File
@@ -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}")