Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorValeriy Sizov <vsv2711@gmail.com>2012-12-18 22:52:18 +0400
committerValeriy Sizov <vsv2711@gmail.com>2012-12-20 22:52:12 +0400
commit77d632890bce9835929daeec829b529799915815 (patch)
tree8b03676cc786d56252b0124de3493eceb801b4fd /spec
parentaa8d4d9fea175e209ac3652f3743ce2801144a66 (diff)
refactoring gfm_autocomplete
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/projects_spec.rb8
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