summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-11 18:42:23 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 16:36:42 +0100
commita4678edde4d1b2257b1173a4475ab1ba5bdbc228 (patch)
tree7398e7c5277b6f597f27d3c4b5e71996e4484ae6
parentc4dc0f52c3fbb0b195a23645ebdc78991abb332d (diff)
downloadgitlab-ce-a4678edde4d1b2257b1173a4475ab1ba5bdbc228.tar.gz
moves let variable to it statement by using a local variable
-rw-r--r--spec/requests/api/projects_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb
index 2a0b56c5052..23b0a2a8885 100644
--- a/spec/requests/api/projects_spec.rb
+++ b/spec/requests/api/projects_spec.rb
@@ -82,12 +82,12 @@ describe API::API, api: true do
end
context 'GET /projects?simple=true' do
- let(:keys) { ["id", "http_url_to_repo", "web_url", "name", "name_with_namespace", "path", "path_with_namespace", "permissions"] }
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
- expect(json_response.first.keys).to match_array keys
+ expect(json_response.first.keys).to match_array expected_keys
end
end