diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-03-13 16:35:10 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-03-13 16:35:10 +0100 |
commit | 2e1b2233ce92fadd81ce3e89e1cd1220b9730060 (patch) | |
tree | 33f6c9322ffbbed6651af5e20cb1136e2b5e3901 /spec/requests/api/runner_spec.rb | |
parent | cc64eda987d2b1dfc7c0af4255bd09f072301f9c (diff) | |
download | gitlab-ce-2e1b2233ce92fadd81ce3e89e1cd1220b9730060.tar.gz |
Fix regression in runners registration v1 apifix/regression-in-runners-registration-v1-api
Diffstat (limited to 'spec/requests/api/runner_spec.rb')
-rw-r--r-- | spec/requests/api/runner_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/requests/api/runner_spec.rb b/spec/requests/api/runner_spec.rb index 15d458e0795..d50fe80b36a 100644 --- a/spec/requests/api/runner_spec.rb +++ b/spec/requests/api/runner_spec.rb @@ -39,6 +39,7 @@ describe API::Runner do expect(json_response['id']).to eq(runner.id) expect(json_response['token']).to eq(runner.token) expect(runner.run_untagged).to be true + expect(runner.token).not_to eq(registration_token) end context 'when project token is used' do @@ -49,6 +50,8 @@ describe API::Runner do expect(response).to have_http_status 201 expect(project.runners.size).to eq(1) + expect(Ci::Runner.first.token).not_to eq(registration_token) + expect(Ci::Runner.first.token).not_to eq(project.runners_token) end end end |