Sha256: ac939e3028cf7fb635a2abe51f594b8780b858f69ddb1dd87d1d88f3765fd577

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

require 'spec_helper'

describe AngellistApi::Client::Startups do
  before(:each) do
    @client = AngellistApi::Client.new
  end
  
  describe "#get_startup" do
    it "should get 1/startups/<id>" do
      id = "123"
      @client.expects(:get).with("1/startups/#{id}", :format => :json, :phoenix => true).returns("success")
      @client.get_startup(id).should == "success"
    end
  end
  
  describe "#startup_search" do
    it "should get 1/startups/search" do
      options = { :some => "options" }
      @client.expects(:get).with("1/startups/search", options, :format => :json, :phoenix => true).returns("success")
      @client.startup_search(options).should == "success"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
angellist_api-1.0.1 spec/lib/angellist_api/client/startups_spec.rb
angellist_api-0.1.2 spec/lib/angellist_api/client/startups_spec.rb
angellist_api-1.0.0 spec/lib/angellist_api/client/startups_spec.rb