Sha256: 64d1974d4064ff9e4cf2ad642018151a011f93fffa3aeaeae1f2cb075ad9d02b

Contents?: true

Size: 618 Bytes

Versions: 6

Compression:

Stored size: 618 Bytes

Contents

require 'spec_helper'

RSpec.describe Chartmogul::Client do

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

  describe '#import' do
    subject { client.import }

    it { expect(subject).to be_a Chartmogul::V1::Import }
    it { expect(subject.client).to eq client }
  end

  describe '#customers' do
    subject { client.customers }

    it { expect(subject).to be_a Chartmogul::V1::Customers }
    it { expect(subject.client).to eq client }
  end

  describe '#userpwd' do
    let(:client) { Chartmogul::Client.new(account_token: 'foo', secret_key: 'bar') }

    it { expect(client.userpwd).to eq 'foo:bar' }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chartmogul_client-0.0.6 spec/chartmogul/client_spec.rb
chartmogul_client-0.0.5 spec/chartmogul/client_spec.rb
chartmogul_client-0.0.4 spec/chartmogul/client_spec.rb
chartmogul_client-0.0.3 spec/chartmogul/client_spec.rb
chartmogul_client-0.0.2 spec/chartmogul/client_spec.rb
chartmogul_client-0.0.1 spec/chartmogul/client_spec.rb