diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-12-18 22:52:18 +0400 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-12-20 22:52:12 +0400 |
commit | 77d632890bce9835929daeec829b529799915815 (patch) | |
tree | 8b03676cc786d56252b0124de3493eceb801b4fd /spec | |
parent | aa8d4d9fea175e209ac3652f3743ce2801144a66 (diff) |
refactoring gfm_autocomplete
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/projects_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb index b4e2fbbdab8..a396516438d 100644 --- a/spec/requests/api/projects_spec.rb +++ b/spec/requests/api/projects_spec.rb @@ -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 |