Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-03-05 19:49:40 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2018-03-28 14:57:41 +0300
commit62f053e4e50dd04933d49622a74dcb89ebe8174e (patch)
treec1fdd2206fff93531d78267cc6edc9dc4d1a9622 /spec/requests/api/runner_spec.rb
parentd02694c5c53265ccd9e8a51a52dc8bb8bcbff656 (diff)
Update runner registration API
Diffstat (limited to 'spec/requests/api/runner_spec.rb')
-rw-r--r--spec/requests/api/runner_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/runner_spec.rb b/spec/requests/api/runner_spec.rb
index 55c4150a393..0ca7ba7154e 100644
--- a/spec/requests/api/runner_spec.rb
+++ b/spec/requests/api/runner_spec.rb
@@ -112,7 +112,7 @@ describe API::Runner do
context 'when maximum job timeout is specified' do
it 'creates runner' do
post api('/runners'), token: registration_token,
- maximum_job_timeout_human_readable: '2h 30m'
+ maximum_job_timeout: '2h 30m'
expect(response).to have_gitlab_http_status 201
expect(Ci::Runner.first.maximum_job_timeout).to eq(9000)
@@ -121,7 +121,7 @@ describe API::Runner do
context 'when maximum job timeout is empty' do
it 'creates runner' do
post api('/runners'), token: registration_token,
- maximum_job_timeout_human_readable: ''
+ maximum_job_timeout: ''
expect(response).to have_gitlab_http_status 201
expect(Ci::Runner.first.maximum_job_timeout).to be_nil