diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-16 11:13:21 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 12:58:59 -0300 |
commit | 29a91c5bc65524fffeaaba493f30c419b98f0869 (patch) | |
tree | 8d74bd6804a33158c9923684e5140285cc461ca5 /spec/controllers | |
parent | f77c47a51c8fef379b2dc9473545e53a28ec3c7f (diff) | |
download | gitlab-ce-29a91c5bc65524fffeaaba493f30c419b98f0869.tar.gz |
Fix matcher `match_response_schema`
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/boards/issues_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/controllers/projects/boards/lists_controller_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/projects/boards/issues_controller_spec.rb b/spec/controllers/projects/boards/issues_controller_spec.rb index ac034ced930..04df58bf4f6 100644 --- a/spec/controllers/projects/boards/issues_controller_spec.rb +++ b/spec/controllers/projects/boards/issues_controller_spec.rb @@ -26,7 +26,7 @@ describe Projects::Boards::IssuesController do parsed_response = JSON.parse(response.body) - expect(response).to match_response_schema('issue', array: true) + expect(response).to match_response_schema('issues') expect(parsed_response.length).to eq 2 end end diff --git a/spec/controllers/projects/boards/lists_controller_spec.rb b/spec/controllers/projects/boards/lists_controller_spec.rb index 8e6b496e1d6..92190b4b69e 100644 --- a/spec/controllers/projects/boards/lists_controller_spec.rb +++ b/spec/controllers/projects/boards/lists_controller_spec.rb @@ -29,7 +29,7 @@ describe Projects::Boards::ListsController do parsed_response = JSON.parse(response.body) - expect(response).to match_response_schema('list', array: true) + expect(response).to match_response_schema('lists') expect(parsed_response.length).to eq 3 end @@ -204,7 +204,7 @@ describe Projects::Boards::ListsController do it 'returns the defaults lists' do generate_default_board_lists user: user - expect(response).to match_response_schema('list', array: true) + expect(response).to match_response_schema('lists') end end |