Sha256: 157edbc6c2dccf4d867d5d13797f97c5f698646e8b20d8c7dc90edadd8f7980b

Contents?: true

Size: 395 Bytes

Versions: 6

Compression:

Stored size: 395 Bytes

Contents

require 'spec_helper'

describe 'list segments' do
  subject(:list_segments) { api.list_segments }

  context 'with success', :vcr do
    it 'responds with success' do
      expect(list_segments).to be_success
    end

    it 'responds with a list of segments' do
      expect(segments.count).to be 13
    end

    def segments
      JSON.parse(list_segments.body)['segments']
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
braze_ruby-0.2.2 spec/integrations/list_segments_spec.rb
braze_ruby-0.2.1 spec/integrations/list_segments_spec.rb
braze_ruby-0.2.0 spec/integrations/list_segments_spec.rb
braze_ruby-0.1.0 spec/integrations/list_segments_spec.rb
braze_ruby-0.0.2 spec/integrations/list_segments_spec.rb
braze_ruby-0.0.1 spec/integrations/list_segments_spec.rb