Sha256: c8ebbfd4134c3bd51727753cf73e758effdca185ee84de32aecbd0d0978b6502

Contents?: true

Size: 302 Bytes

Versions: 8

Compression:

Stored size: 302 Bytes

Contents

require 'spec_helper'

describe "Intercom::Segment" do

  let(:client) { Intercom::Client.new(token: 'token') }

  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

8 entries across 8 versions & 1 rubygems

Version Path
intercom-4.2.1 spec/unit/intercom/segment_spec.rb
intercom-4.2.0 spec/unit/intercom/segment_spec.rb
intercom-4.1.3 spec/unit/intercom/segment_spec.rb
intercom-4.1.2 spec/unit/intercom/segment_spec.rb
intercom-4.1.1 spec/unit/intercom/segment_spec.rb
intercom-4.1.0 spec/unit/intercom/segment_spec.rb
intercom-4.0.1 spec/unit/intercom/segment_spec.rb
intercom-4.0.0 spec/unit/intercom/segment_spec.rb