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.9.5 spec/unit/intercom/segment_spec.rb
intercom-3.9.4 spec/unit/intercom/segment_spec.rb
intercom-3.9.3 spec/unit/intercom/segment_spec.rb
intercom-3.9.2 spec/unit/intercom/segment_spec.rb
intercom-3.9.0 spec/unit/intercom/segment_spec.rb
intercom-3.8.1 spec/unit/intercom/segment_spec.rb
intercom-3.8.0 spec/unit/intercom/segment_spec.rb
intercom-3.7.7 spec/unit/intercom/segment_spec.rb
intercom-3.7.6 spec/unit/intercom/segment_spec.rb
intercom-3.7.5 spec/unit/intercom/segment_spec.rb
intercom-3.7.4 spec/unit/intercom/segment_spec.rb
intercom-3.7.3 spec/unit/intercom/segment_spec.rb
intercom-3.7.2 spec/unit/intercom/segment_spec.rb
intercom-3.7.1 spec/unit/intercom/segment_spec.rb
intercom-3.7.0 spec/unit/intercom/segment_spec.rb
intercom-3.6.2 spec/unit/intercom/segment_spec.rb
intercom-3.6.1 spec/unit/intercom/segment_spec.rb
intercom-3.6.0 spec/unit/intercom/segment_spec.rb
intercom-3.5.26 spec/unit/intercom/segment_spec.rb
intercom-3.5.25 spec/unit/intercom/segment_spec.rb