diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 13:10:09 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 14:43:50 +0400 |
commit | 0b512af803d007852bcba40c75203e0e45dda177 (patch) | |
tree | d85179b7bf98fb9de7cd7c6d7d7557dfe8db0939 /spec/requests/api/milestones_spec.rb | |
parent | 29f70acc987abe0b188ef187c70f179088d79589 (diff) |
Milestone uses StateMachine now
Diffstat (limited to 'spec/requests/api/milestones_spec.rb')
-rw-r--r-- | spec/requests/api/milestones_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/requests/api/milestones_spec.rb b/spec/requests/api/milestones_spec.rb index 80696671462..d1b5e449bc5 100644 --- a/spec/requests/api/milestones_spec.rb +++ b/spec/requests/api/milestones_spec.rb @@ -44,4 +44,14 @@ describe Gitlab::API do json_response['title'].should == 'updated title' end end + + describe "PUT /projects/:id/milestones/:milestone_id to close milestone" do + it "should update a project milestone" do + put api("/projects/#{project.id}/milestones/#{milestone.id}", user), + state_event: 'close' + response.status.should == 200 + + json_response['state'].should == 'closed' + end + end end |