diff options
author | Mark Fletcher <mark@gitlab.com> | 2018-05-24 18:03:58 +0300 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2018-05-24 18:05:29 +0300 |
commit | 2dd1c8e5d84163e3cfc655e0dad5384f1d4aa0c2 (patch) | |
tree | a9964bcb83a3006ecdda13f36e8996cfab9d5163 /spec/support/api | |
parent | c52db71e36ee70c4c5be80b029cf4362f28e3667 (diff) |
Allow start_date as only parameter when updating Milestone via API
Diffstat (limited to 'spec/support/api')
-rw-r--r-- | spec/support/api/milestones_shared_examples.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/api/milestones_shared_examples.rb b/spec/support/api/milestones_shared_examples.rb index 0388f110d71..a15189db35f 100644 --- a/spec/support/api/milestones_shared_examples.rb +++ b/spec/support/api/milestones_shared_examples.rb @@ -196,6 +196,12 @@ shared_examples_for 'group and project milestones' do |route_definition| expect(json_response['state']).to eq('closed') end + + it 'updates milestone with only start date' do + put api(resource_route, user), start_date: Date.tomorrow + + expect(response).to have_gitlab_http_status(200) + end end describe "GET #{route_definition}/:milestone_id/issues" do |