Sha256: 24d695cadadfee9854176861d73570691fa823e9bc5d29485c34b6a46a2dae00
Contents?: true
Size: 1.11 KB
Versions: 5
Compression:
Stored size: 1.11 KB
Contents
require 'spec_helper' describe AngellistApi::Client::Startups do let(:client) { AngellistApi::Client.new } describe "#get_startup" do it "gets 1/startups/<id>" do id = "123" client.should_receive(:get).with("1/startups/#{id}").and_return("success") client.get_startup(id).should == "success" end end describe '#startup_comments' do it 'gets 1/startups/<id>/comments' do id = 123 client.should_receive(:get).with("1/startups/#{id}/comments").and_return('success') client.startup_comments(id).should eq 'success' end end describe '#get_startups' do it 'gets 1/startups/batch' do ids = [1, 2, 3] client.should_receive(:get). with('1/startups/batch', { :ids => ids.join(',') }). and_return('success') client.get_startups(ids).should == 'success' end end describe "#startup_search" do it "gets 1/startups/search" do options = { :some => "options" } client.should_receive(:get).with("1/startups/search", options).and_return("success") client.startup_search(options).should == "success" end end end
Version data entries
5 entries across 5 versions & 1 rubygems