Sha256: 1c065654b471a2d788c2bedcfa90b0131b92201fb63ef8546a8ad34c75df3b8f

Contents?: true

Size: 790 Bytes

Versions: 4

Compression:

Stored size: 790 Bytes

Contents

require 'spec_helper'

describe Spree::API::Client::Addresses do
  # vcr_options = { :cassette_name =>  "addresss" }
  describe 'address', :vcr do
    it 'should load address' do
      client = Spree::API::Client.new('http://localhost:4000/store/api', 'b56019f04b61a50553ee323f5ab68c6b435871971e79c987')
      address = client.address('R123456789', 2)
      address.should be_a(Hashie::Mash)
    end
  end

  describe 'update_address', :vcr do
    it 'should update address' do
      client = Spree::API::Client.new('http://localhost:4000/store/api', 'b56019f04b61a50553ee323f5ab68c6b435871971e79c987')
      address = client.update_address('R123456789', 2, address: {city: 'Abernathy City'})
      address.should be_a(Hashie::Mash)
      address.city eq 'Abernathy City'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cq-spree-api-client-0.0.10 spec/addresses_spec.rb
cq-spree-api-client-0.0.9 spec/addresses_spec.rb
cq-spree-api-client-0.0.6 spec/addresses_spec.rb
cq-spree-api-client-0.0.5 spec/addresses_spec.rb