Sha256: 9b306f2f210b15be9b652ad320d08db1392ebb380972fc46c5cdd7dfe33f71f2

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

require 'spec_helper'

RSpec.describe Chartmogul::V1::Import::Invoices do

  let(:client) { Chartmogul::Client.new }

  describe '#create' do
    let(:url) { 'https://api.chartmogul.com/v1/import/customers/customer-id/invoices' }
    let(:query) { { foo: 'bar' } }

    before do
      stub_request(:post, url).with(query: query).to_return(status: 201)
    end

    subject { client.import.customers.invoices.create('customer-id', query) }

    it_should_behave_like 'a base ChartMogul API V1 requests', method: :post
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chartmogul_client-0.0.3 spec/chartmogul/v1/import/invoices_spec.rb
chartmogul_client-0.0.2 spec/chartmogul/v1/import/invoices_spec.rb