Skip to content
Snippets Groups Projects
Commit cb39532f authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

collection behaves like a list

parent 64b0b6e9
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ resource 'Collections' do
before { 12.times { create(:collection) } }
it_behaves_like "get a list", '/v1/collections', Collection, 'collections'
it_behaves_like "a list", '/v1/collections', Collection, 'collections'
let(:collections) { Collection.all }
#
# get '/v1/collections' do
......
RSpec.shared_examples "get a list" do |url, object, klass|
RSpec.shared_examples "a list" do |url, object, klass|
get url do
parameter :limit, 'Limit of #{object}'
parameter :offset, 'Offset of #{object}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment