Milestone uses StateMachine now

This commit is contained in:
Andrew8xx8 2013-02-18 13:10:09 +04:00
parent 29f70acc98
commit 0b512af803
7 changed files with 39 additions and 25 deletions

View file

@ -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