summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 17:36:22 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 17:36:22 +0100
commit3e44aac08dc744915b932a0a7bed0d3f3ab3ab6b (patch)
tree3275e9e31ff93f4cc9ae1a9ba7c6407031f90fa3
parent563b303bde6701fc91351701db651e8da68f9b80 (diff)
downloadgitlab-ce-3e44aac08dc744915b932a0a7bed0d3f3ab3ab6b.tar.gz
fixes test according to four-phase test pattern
-rw-r--r--lib/api/.projects.rb.swnbin28672 -> 28672 bytes
-rw-r--r--spec/requests/api/projects_spec.rb1
2 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/.projects.rb.swn b/lib/api/.projects.rb.swn
index 890811564d2..6a9e5f146ea 100644
--- a/lib/api/.projects.rb.swn
+++ b/lib/api/.projects.rb.swn
Binary files differ
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb
index 23b0a2a8885..d7c0f60048b 100644
--- a/spec/requests/api/projects_spec.rb
+++ b/spec/requests/api/projects_spec.rb
@@ -84,6 +84,7 @@ describe API::API, api: true do
context 'GET /projects?simple=true' do
it 'should return a simplified version of all the projects' do
expected_keys = ["id", "http_url_to_repo", "web_url", "name", "name_with_namespace", "path", "path_with_namespace", "permissions"]
+
get api('/projects?simple=true', user)
expect(response).to have_http_status(200)
expect(json_response).to be_an Array