Sha256: 54fdd6653fa744ca33770425399b2e7009d1de34fc08b3a2aa4e285d3f32d20b

Contents?: true

Size: 630 Bytes

Versions: 7

Compression:

Stored size: 630 Bytes

Contents

require 'spec_helper'

describe 'get merchants' do
  subject do
    Cashstar::Client.new(DEFAULT_OPTIONS)
  end

  before do
    stub_get('v2/merchant', 'merchants')
  end

  it 'returns merchants' do
    subject.merchants.should == [ { 'name'          => 'Widget Store',
                                    'legal_name'    => 'The Widget Store, Inc.',
                                    'merchant_code' => 'TWS' },
                                  { 'name'          => 'Yummy Food',
                                    'legal_name'    => 'Yummy Food',
                                    'merchant_code' => 'YUM' } ]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cashstar-ruby-0.2.4 spec/integration/get_merchants_spec.rb
cashstar-ruby-0.2.3 spec/integration/get_merchants_spec.rb
cashstar-ruby-0.2.2 spec/integration/get_merchants_spec.rb
cashstar-ruby-0.2.1 spec/integration/get_merchants_spec.rb
cashstar-ruby-0.2.0 spec/integration/get_merchants_spec.rb
cashstar-ruby-0.1.8 spec/integration/get_merchants_spec.rb
cashstar-ruby-0.1.7 spec/integration/get_merchants_spec.rb