diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-06-05 17:39:45 +0300 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-06-12 13:58:35 +0300 |
commit | b7d6bb9763ce0c682fae787c452103102624da26 (patch) | |
tree | e84543bbac2a2bd339b9b38b56e1746086d94455 /spec/requests | |
parent | c70e9f2ed107ac3d0189a803eae6e7e7917f6224 (diff) |
Ensure that old API v1 generates still the same output
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/ci/api/builds_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/requests/ci/api/builds_spec.rb b/spec/requests/ci/api/builds_spec.rb index 286de277ae7..04cc7708858 100644 --- a/spec/requests/ci/api/builds_spec.rb +++ b/spec/requests/ci/api/builds_spec.rb @@ -137,6 +137,18 @@ describe Ci::API::Builds do end end end + + context 'when docker configuration options are used' do + let!(:build) { create(:ci_build, :extended_options, pipeline: pipeline, name: 'spinach', stage: 'test', stage_idx: 0) } + + it 'starts a build' do + register_builds info: { platform: :darwin } + + expect(response).to have_http_status(201) + expect(json_response['options']['image']).to eq('ruby:2.1') + expect(json_response['options']['services']).to eq(['postgres', 'docker:dind']) + end + end end context 'when builds are finished' do |