Sha256: 16b2c018fc4f799e17186ce21fc206fe2eea28e877ec8a2d8cafc4a38442326d

Contents?: true

Size: 495 Bytes

Versions: 28

Compression:

Stored size: 495 Bytes

Contents

require 'spec_helper'

module GoTransverseTractApi

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

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

    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

28 entries across 28 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.14.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.13.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.12.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.11.2 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.11.1 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.11.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.10.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.9.2 spec/gotransverse-tract-api/order/people_spec.rb