Sha256: fe28f684fa55b773966e41364df4f569ce8b8936a14b046bb82890521633fca0
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
require 'spec_helper' RSpec.describe Base::Apis::Order do let(:client_secret) { Base::APIClient::ClientSecret.new } subject { Base::Apis::Order.new client_secret } describe '::new' do include_examples 'Base::Apis::Something.new' end describe '#index' do let(:response) { VCR.use_cassette('order/index') { subject.index } } it 'contains code "200"' do expect(response.code).to eq '200' end it '@body contains orders' do expect(response.body).to match(/orders/) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
base-api-client-0.3.1.beta | spec/base/apis/order_spec.rb |