diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-14 22:17:01 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-14 22:25:11 +0800 |
commit | f74f42386029077d0f12ac407fc6ee39aaeeaf53 (patch) | |
tree | 29004014c599c19521d26f401202d84e34649a83 /spec/requests/api/runners_spec.rb | |
parent | 1b03c5807fab6d2122e5a590cebfb2e7978a6659 (diff) | |
download | gitlab-ce-f74f42386029077d0f12ac407fc6ee39aaeeaf53.tar.gz |
Give 409 Conflict whenever the runner was already enabledprefer-assign_to
Diffstat (limited to 'spec/requests/api/runners_spec.rb')
-rw-r--r-- | spec/requests/api/runners_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb index 73ae8ef631c..7aae0192fcb 100644 --- a/spec/requests/api/runners_spec.rb +++ b/spec/requests/api/runners_spec.rb @@ -375,7 +375,7 @@ describe API::Runners, api: true do expect do post api("/projects/#{project.id}/runners", user), runner_id: specific_runner.id end.to change{ project.runners.count }.by(0) - expect(response.status).to eq(201) + expect(response.status).to eq(409) end it 'should not enable shared runner' do |