Sha256: a78c159735545ef6821a7d360d6e900ff6c5325546562d7d26cc563cc33e2e4c

Contents?: true

Size: 379 Bytes

Versions: 7

Compression:

Stored size: 379 Bytes

Contents

require 'spec_helper'

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

  describe '#search' do
    it 'gets 1/search' do
      query = 'pirates'
      options = { :some => "options" }
      client.should_receive(:get).with('1/search', options).and_return('success')
      client.search(query, options).should == 'success'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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