diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-23 10:48:10 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-23 11:45:17 +0100 |
commit | 3e6950481a90a83f183397f11b8f2a5d21233cfb (patch) | |
tree | 75752ade976609ad1043c3ae180c6a0de1d9882f /spec | |
parent | 37731ba1a1a926f1e4bd6dc620066822f3a4b0da (diff) | |
download | gitlab-ce-3e6950481a90a83f183397f11b8f2a5d21233cfb.tar.gz |
Use method that creates runners registration token
`runners_registration_token` now creates a new token if it is blank.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/admin/admin_runners_spec.rb | 2 | ||||
-rw-r--r-- | spec/requests/ci/api/runners_spec.rb | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb index 66a2cc0c157..26d03944b8a 100644 --- a/spec/features/admin/admin_runners_spec.rb +++ b/spec/features/admin/admin_runners_spec.rb @@ -63,7 +63,7 @@ describe "Admin Runners" do end describe 'runners registration token' do - let!(:token) { current_application_settings.ensure_runners_registration_token } + let!(:token) { current_application_settings.runners_registration_token } before { visit admin_runners_path } it 'has a registration token' do diff --git a/spec/requests/ci/api/runners_spec.rb b/spec/requests/ci/api/runners_spec.rb index 567da013e6f..5942aa7a1b5 100644 --- a/spec/requests/ci/api/runners_spec.rb +++ b/spec/requests/ci/api/runners_spec.rb @@ -8,7 +8,6 @@ describe Ci::API::API do before do stub_gitlab_calls - stub_application_setting(ensure_runners_registration_token: registration_token) stub_application_setting(runners_registration_token: registration_token) end |