Skip to content
Snippets Groups Projects
Commit bc8b409e authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

Merge branch 'rspec' of gitlab.c3sl.ufpr.br:portalmec/portalmec into rspec

parents 5a12004e cb39532f
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ resource 'Collections' do ...@@ -8,7 +8,7 @@ resource 'Collections' do
before { 12.times { create(:collection) } } 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 } let(:collections) { Collection.all }
# #
# get '/v1/collections' do # 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 get url do
parameter :limit, 'Limit of #{object}' parameter :limit, 'Limit of #{object}'
parameter :offset, 'Offset 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