Sha256: 1ef163ca381d91017b26262f52aad350811473b335c54675466dd64c25d093d9

Contents?: true

Size: 323 Bytes

Versions: 53

Compression:

Stored size: 323 Bytes

Contents

require 'spec_helper'

describe "Intercom::Segment" do

  let (:client) { Intercom::Client.new(app_id: 'app_id',  api_key: 'api_key') }

  it 'lists segments' do
    client.expects(:get).with('/segments', {}).returns(segment_list)
    segments = client.segments.all.to_a
    segments[0].name.must_equal('Active')
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
intercom-3.5.24 spec/unit/intercom/segment_spec.rb
intercom-3.5.23 spec/unit/intercom/segment_spec.rb
intercom-3.5.22 spec/unit/intercom/segment_spec.rb
intercom-3.5.21 spec/unit/intercom/segment_spec.rb
intercom-3.5.20 spec/unit/intercom/segment_spec.rb
intercom-3.5.19 spec/unit/intercom/segment_spec.rb
intercom-3.5.17 spec/unit/intercom/segment_spec.rb
intercom-3.5.16 spec/unit/intercom/segment_spec.rb
intercom-3.5.15 spec/unit/intercom/segment_spec.rb
intercom-3.5.14 spec/unit/intercom/segment_spec.rb
intercom-3.5.12 spec/unit/intercom/segment_spec.rb
intercom-3.5.11 spec/unit/intercom/segment_spec.rb
intercom-3.5.10 spec/unit/intercom/segment_spec.rb
intercom-3.5.9 spec/unit/intercom/segment_spec.rb
intercom-3.5.8 spec/unit/intercom/segment_spec.rb
intercom-3.5.7 spec/unit/intercom/segment_spec.rb
intercom-3.5.6 spec/unit/intercom/segment_spec.rb
intercom-3.5.5 spec/unit/intercom/segment_spec.rb
intercom-3.5.4 spec/unit/intercom/segment_spec.rb
intercom-3.5.3 spec/unit/intercom/segment_spec.rb