Sha256: 33ddb99b9e27c0c0075e7d6098a20f17a2b80336b3c577171496b1cdfdf52622

Contents?: true

Size: 398 Bytes

Versions: 8

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'

describe LiveQA::Event do

  describe '.create' do
    let(:response) { double('LiveQA::Request', body:  "{\"object\":\"event\",\"id\":41}") }
    before { expect(LiveQA::Request).to receive(:execute).and_return(response) }

    subject(:create) { LiveQA::Event.create(user_id: 42) }

    it { is_expected.to be_successful }
    it { expect(create.id).to eq(41) }
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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