Sha256: 01a0ff01a5fd8d2211b93e435baf1a23b91b43471814442fa82431bbc880eeeb

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

require 'spec_helper'

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

  describe "#get_tag" do
    it "gets 1/tags/<id>" do
      id = "123"
      client.should_receive(:get).with("1/tags/#{id}").and_return("success")
      client.get_tag(id).should == "success"
    end
  end

  describe "#get_tag_children" do
    it "gets 1/tags/<id>/children" do
      id = "123"
      client.should_receive(:get).with("1/tags/#{id}/children").and_return("success")
      client.get_tag_children(id).should == "success"
    end
  end

  describe "#get_tag_parents" do
    it "gets 1/tags/<id>/parents" do
      id = "123"
      client.should_receive(:get).with("1/tags/#{id}/parents").and_return("success")
      client.get_tag_parents(id).should == "success"
    end
  end

  describe "#get_tag_startups" do
    it "gets 1/tags/<id>/startups" do
      id = "123"
      options = { :some => "options" }
      client.should_receive(:get).with("1/tags/#{id}/startups", options).and_return("success")
      client.get_tag_startups(id, options).should == "success"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
angellist_api-1.0.5 spec/unit/lib/angellist_api/client/tags_spec.rb
angellist_api-1.0.4 spec/unit/lib/angellist_api/client/tags_spec.rb
angellist_api-1.0.3 spec/unit/lib/angellist_api/client/tags_spec.rb
angellist_api-1.0.2 spec/unit/lib/angellist_api/client/tags_spec.rb