Sha256: 523ba796b154c86b3e6e36623916c0ff4fffbd55fac83b1dd25f8432755a1bdc
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' module GoTransverseTractApi RSpec.describe Order::People do before(:each) { http_auth } let(:eid) { '4096' } let(:response) { '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' } 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 context ".update" do it "updates a person details" do data = { eid: eid, name: 'John Smith', tax_id_number: '124224242' } allow(subject).to receive(:update).with(eid, data).and_return(response) expect(subject.update(eid, data)).to eq(response) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems