Merge pull request #2305 from gitlabhq/fix_gfm_auto_complete
Fix and refactoring gfm_autocomplete
This commit is contained in:
commit
a567d596f8
4 changed files with 22 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue