Commit 0d1009af authored by miks's avatar miks

"users" GET test added

parent 8a340818
...@@ -107,6 +107,18 @@ describe Gitlab::API do ...@@ -107,6 +107,18 @@ describe Gitlab::API do
end end
end end
describe "GET /projects/:id/users" do
it "should return project users" do
get api("/projects/#{project.code}/users", user)
response.status.should == 200
json_response.should be_an Array
json_response.count.should == 1
json_response.first['user']['id'].should == user.id
end
end
describe "POST /projects/:id/users" do describe "POST /projects/:id/users" do
it "should add users to project" do it "should add users to project" do
expect { expect {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment