Sha256: 0624686c25765850278d935a4e6d7023f3da51bd995fbcab245498462757b72b

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

require 'shared_examples_for_get_resource.rb'

RSpec.describe OiApi::Client::Balances do

  let(:api) { Factory.api_client }
  let(:advertiser) { Factory.create_advertiser }

  context '#balance', :vcr do

    let(:response) { api.balance(advertiser['id']) }

    it_should_behave_like 'GET resources', :balance, { expected_num_resources: 1 }

    it 'returns a balance' do
      expect(response['balance']).to eql 0.0
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oi-api-ruby-0.1.5 spec/oi_api/client/balances_spec.rb
oi-api-ruby-0.1.4 spec/oi_api/client/balances_spec.rb
oi-api-ruby-0.1.3 spec/oi_api/client/balances_spec.rb
oi-api-ruby-0.1.2 spec/oi_api/client/balances_spec.rb
oi-api-ruby-0.1.1 spec/oi_api/client/balances_spec.rb