Sha256: 5ef4b142a81712cdc2381de6c64e2caca28155fa016bf931d672012131dedb37

Contents?: true

Size: 756 Bytes

Versions: 7

Compression:

Stored size: 756 Bytes

Contents

require 'spec_helper'

module GoTransverseTractApi

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

    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'
        }

        response = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'

        #described_class.add_address(eid, data)

        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

7 entries across 7 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.5.2 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.5.1 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.5.0 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.4.3 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.4.2 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.4.1 spec/gotransverse-tract-api/order/organization_spec.rb
gotransverse-tract-api-0.4.0 spec/gotransverse-tract-api/order/organization_spec.rb