Sha256: 33a607e49f7945f4bdb6b096cdcac5ea56e682118994f51397ddb277d4856023

Contents?: true

Size: 946 Bytes

Versions: 35

Compression:

Stored size: 946 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 = {
          person: {eid: eid},
          postal_address: {
            city: 'fsfsfs',
            country: 'USA',
            line1: 'wefsvgg ggdgdgd',
            postal_code: '232433',
            purpose: 'Billing',
            region_or_state: 'CA'
          },
          email_address: {
            email: 'test@test.com'
          },
          telecom_address: {
            country_code: '001',
            area_code: '925',
            number: '123-3214'
          }
        }

        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

35 entries across 35 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.24.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.23.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.22.1 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.22.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.21.1 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.21.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.20.3 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.20.2 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.20.1 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.20.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.19.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.18.3 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.18.2 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.18.1 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.18.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.17.2 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.17.1 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.17.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.16.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.15.0 spec/gotransverse-tract-api/order/organization_spec.rb