Sha256: 20be76fa8f100f027caea1152799e4aa132306c0b2cb990a5b15a4e1e0c729f2

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 KB

Contents

require 'spec_helper'

describe AngellistApi::Client::Tags do
  before(:each) do
    @client = AngellistApi::Client.new
  end
  
  describe "#get_tag" do
    it "should get 1/tags/<id>" do
      id = "123"
      @client.expects(:get).with("1/tags/#{id}", :format => :json, :phoenix => true).returns("success")
      @client.get_tag(id).should == "success"
    end
  end
  
  describe "#get_tag_children" do
    it "should get 1/tags/<id>/children" do
      id = "123"
      @client.expects(:get).with("1/tags/#{id}/children", :format => :json, :phoenix => true).returns("success")
      @client.get_tag_children(id).should == "success"
    end
  end
  
  describe "#get_tag_parents" do
    it "should get 1/tags/<id>/parents" do
      id = "123"
      @client.expects(:get).with("1/tags/#{id}/parents", :format => :json, :phoenix => true).returns("success")
      @client.get_tag_parents(id).should == "success"
    end
  end
  
  describe "#get_tag_startups" do
    it "should get 1/tags/<id>/startups" do
      id = "123"
      options = { :some => "options" }
      @client.expects(:get).with("1/tags/#{id}/startups", options, :format => :json, :phoenix => true).returns("success")
      @client.get_tag_startups(id, 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/tags_spec.rb
angellist_api-0.1.2 spec/lib/angellist_api/client/tags_spec.rb
angellist_api-1.0.0 spec/lib/angellist_api/client/tags_spec.rb