Sha256: f87b9ceb17ca0ba76ebf8c72023901bd4df640e291ab5846a6b9437acbc2b212
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
require 'spec_helper' RSpec.describe Base::Apis::DeliveryCompany do let(:client_secret) { Base::APIClient::ClientSecret.new } subject { Base::Apis::DeliveryCompany.new client_secret } describe '::new' do include_examples 'Base::Apis::Something.new' end describe '#index' do let(:response) do VCR.use_cassette('delivery_company/index') { subject.index } end it 'status is 200' do expect(response.status).to eq 200 end it '@body contains information of the delivery companies' do expect(response.body).to match(/delivery_companies/) expect(response.body).to match(/delivery_company_id/) expect(response.body).to match(/name/) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
base-api-client-0.3.3.beta | spec/base/apis/delivery_company_spec.rb |
base-api-client-0.3.2.beta | spec/base/apis/delivery_company_spec.rb |