Sha256: 4cfb60a56903cf7e3b986bc29ae844b903b294c5f5b6e727fccedc53aa57a165

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

require 'spec_helper'

RSpec.describe Base::Apis::Category do
  let(:client_secret) { Base::APIClient::ClientSecret.new }
  subject { Base::Apis::Category.new client_secret }

  describe '::new' do
    include_examples 'Base::Apis::Something.new'
  end

  describe '#index' do
    let(:response) { VCR.use_cassette('category/index') { subject.index } }

    it 'contains code "200"' do
      expect(response.code).to eq '200'
    end

    it '@body contains categories' do
      expect(response.body).to match(/categories/)
    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/category_spec.rb