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.2 spec/unit/intercom/segment_spec.rb
intercom-3.5.1 spec/unit/intercom/segment_spec.rb
intercom-3.4.0 spec/unit/intercom/segment_spec.rb
intercom-3.3.0 spec/unit/intercom/segment_spec.rb
intercom-3.2.0 spec/unit/intercom/segment_spec.rb
intercom-3.1.0 spec/unit/intercom/segment_spec.rb
intercom-3.0.6 spec/unit/intercom/segment_spec.rb
intercom-3.0.5 spec/unit/intercom/segment_spec.rb
intercom-3.0.4 spec/unit/intercom/segment_spec.rb
intercom-3.0.3 spec/unit/intercom/segment_spec.rb
intercom-3.0.2 spec/unit/intercom/segment_spec.rb
intercom-3.0.0 spec/unit/intercom/segment_spec.rb
intercom-3.0.0b1 spec/unit/intercom/segment_spec.rb