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.24.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.23.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.22.1 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.22.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.21.1 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.21.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.20.3 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.20.2 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.20.1 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.20.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.19.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.18.3 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.18.2 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.18.1 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.18.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.17.2 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.17.1 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.17.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.16.0 spec/gotransverse-tract-api/order/people_spec.rb
gotransverse-tract-api-0.15.0 spec/gotransverse-tract-api/order/people_spec.rb