Sha256: c1434be1906fad6947f10e9c7f8ddfdbb37b49c0a531fe51075f36ac5909b629

Contents?: true

Size: 840 Bytes

Versions: 8

Compression:

Stored size: 840 Bytes

Contents

require 'spec_helper'

describe LiveQA::Group do

  describe '#update' do
    let(:response) { double('LiveQA::Request', body: "{\"object\":\"group\",\"id\":3,\"externalId\":\"41df8a48a68cb7c94e119ef7f1380537\",\"rawData\":{\"name\":\"Lubowitz, Cartwright and Davis\",\"email\":\"kenya_parker@batz.info\",\"plan\":\"premium\",\"address\":{\"street\":\"19222 Keyshawn Mountain\",\"city\":\"Rogahnmouth\",\"state\":\"Hawaii\",\"postal_code\":\"98441-4908\",\"country\":\"Singapore\"}}}") }
    before { expect(LiveQA::Request).to receive(:execute).and_return(response) }

    subject(:update) { LiveQA::Group.update('41df8a48a68cb7c94e119ef7f1380537', properties: { name: 'Lubowitz, Cartwright and Davis' }) }

    it { is_expected.to be_successful }
    it { expect(update.external_id).to eq('41df8a48a68cb7c94e119ef7f1380537') }
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
liveqa-1.9.6 spec/lib/liveqa/group_spec.rb
liveqa-1.9.5 spec/lib/liveqa/group_spec.rb
liveqa-1.9.4 spec/lib/liveqa/group_spec.rb
liveqa-1.9.3 spec/lib/liveqa/group_spec.rb
liveqa-1.9.2 spec/lib/liveqa/group_spec.rb
liveqa-1.9.1 spec/lib/liveqa/group_spec.rb
liveqa-1.9.0 spec/lib/liveqa/group_spec.rb
liveqa-1.8.3 spec/lib/liveqa/group_spec.rb