refactoring gfm_autocomplete

This commit is contained in:
Valeriy Sizov 2012-12-18 20:52:18 +02:00
parent aa8d4d9fea
commit 77d632890b
4 changed files with 22 additions and 28 deletions

View file

@ -117,6 +117,14 @@ describe Gitlab::API do
json_response.count.should == 2
json_response.first['email'].should == user.email
end
it "finds team members with query string" do
get api("/projects/#{project.path}/members", user), query: user.username
response.status.should == 200
json_response.should be_an Array
json_response.count.should == 1
json_response.first['email'].should == user.email
end
end
describe "GET /projects/:id/members/:user_id" do