Sha256: ec87bbfafbe7575a6f5b93ce7547c177f98ea93b3b23357d6b3bbaaf8d39de68

Contents?: true

Size: 745 Bytes

Versions: 6

Compression:

Stored size: 745 Bytes

Contents

require 'spec_helper'

describe AngellistApi::Client::Paths do
  let(:client) { AngellistApi::Client.new }

  describe '#get_paths' do
    it 'gets 1/messages' do
      options = { :some => 'options' }
      client.should_receive(:get).with('1/paths', options).and_return('success')
      client.get_paths(options).should == 'success'
    end

    it 'accepts an Array of startup_ids' do
      options = { :startup_ids => [1,2] }
      client.should_receive(:get).with('1/paths', :startup_ids => '1,2')
      client.get_paths(options)
    end

    it 'accepts an Array of user_ids' do
      options = { :user_ids => [1,2] }
      client.should_receive(:get).with('1/paths', :user_ids => '1,2')
      client.get_paths(options)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
angellist_api-1.1.0 spec/unit/lib/angellist_api/client/paths_spec.rb
angellist_api-1.0.7 spec/unit/lib/angellist_api/client/paths_spec.rb
angellist_api-1.0.6 spec/unit/lib/angellist_api/client/paths_spec.rb
angellist_api-1.0.5 spec/unit/lib/angellist_api/client/paths_spec.rb
angellist_api-1.0.4 spec/unit/lib/angellist_api/client/paths_spec.rb
angellist_api-1.0.3 spec/unit/lib/angellist_api/client/paths_spec.rb