Sha256: 7adbde4d7fdddfa99d12bb3af83468b04bfeea264f3205f8d563924450b611ee

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

require 'spec_helper'

module GoTransverseTractApi

  RSpec.describe Order::Organization do
    before(:each) { http_auth }

    let(:response)  { {a: 'b', c: 'd'} }

    context ".add_address" do
      it "adds address for the customer" do
        eid = '48406'

        data = {
          :city => 'fsfsfs',
          :country => 'USA',
          :line1 => 'wefsvgg ggdgdgd',
          :postal_code => '232433',
          :purpose => 'Billing',
          :region_or_state => 'CA'
        }

        allow(subject).to receive(:add_address).with(eid, data).and_return(response)
        expect(subject.add_address(eid, data)).to eq(response)
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.5.3 spec/gotransverse-tract-api/order/organization_spec.rb