Sha256: 550b62c43b92f3008ead8755f138e0d636d6f74f9e5ab1c63e69a82053265830
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
Contents
require 'spec_helper' describe AngellistApi::Client::Users do let(:client) { AngellistApi::Client.new } describe "#get_user" do it "gets 1/users/<id>" do id = "123" client.should_receive(:get).with("1/users/#{id}", {}).and_return("success") client.get_user(id).should == "success" end end describe '#get_users' do it 'gets 1/users/batch?ids=<ids>' do ids = [1, 2, 3] client.should_receive(:get). with('1/users/batch', { :ids => ids.join(',') }). and_return('success') client.get_users(ids).should == 'success' end end describe "#user_search" do it "gets 1/users/search" do options = { :some => "options "} client.should_receive(:get).with("1/users/search", options).and_return("success") client.user_search(options).should == "success" end end describe "#me" do it "gets 1/me" do client.should_receive(:get).with("1/me").and_return("success") client.me.should == "success" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
angellist_api-1.1.0 | spec/unit/lib/angellist_api/client/users_spec.rb |
angellist_api-1.0.7 | spec/unit/lib/angellist_api/client/users_spec.rb |