Sha256: e187cb6798c536560c13bff9c4285ef21c4d64aab29b1342195da6b6abe1432c
Contents?: true
Size: 342 Bytes
Versions: 5
Compression:
Stored size: 342 Bytes
Contents
RSpec.shared_examples 'GET resources' do |resource_name, options| it 'returns 200 OK' do expect(response.code).to eql 200 end it 'returns HTTParty::Response' do expect(response.class).to eql HTTParty::Response end it 'returns all resources' do expect(response.size).to eql options[:expected_num_resources] end end
Version data entries
5 entries across 5 versions & 1 rubygems