diff options
Diffstat (limited to 'spec/support/helpers/api_helpers.rb')
-rw-r--r-- | spec/support/helpers/api_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/helpers/api_helpers.rb b/spec/support/helpers/api_helpers.rb index dc263d64bcc..b1e6078c4f2 100644 --- a/spec/support/helpers/api_helpers.rb +++ b/spec/support/helpers/api_helpers.rb @@ -51,11 +51,11 @@ module ApiHelpers expect(json_response).to be_an Array end - def expect_paginated_array_response(items) + def expect_paginated_array_response(*items) expect(response).to have_gitlab_http_status(:ok) expect(response).to include_pagination_headers expect(json_response).to be_an Array - expect(json_response.map { |item| item['id'] }).to eq(Array(items)) + expect(json_response.map { |item| item['id'] }).to eq(items.flatten) end def expect_response_contain_exactly(*items) |