Sha256: d8a5d247dbf8a9ba34ebf62a39e75b1fcf9d68043b6734a8cfb02594788a3edc

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")

module Crunchbase
  describe Product, :vcr  do
    subject { Product.lists_for_permalink("facebook") }

    it_has_behavior 'pagination'

    its(:size) { should eq(17) }

    # describe "advanced indexing" do

    #   it "should pull from web api" do
    #     @all_products.results.count.should == 16
    #   end
    # end

    # it "should pull from web api" do
    #   product = Product.get("internet-org")

    #   product.name.should == "Internet.org"
    #   product.permalink.should == "internet-org"
    # end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
crunchbase_v2-1.1.6 spec/crunchbase/product_spec.rb
crunchbase_v2-1.1.5 spec/crunchbase/product_spec.rb
crunchbase_v2-1.1.4 spec/crunchbase/product_spec.rb
crunchbase_v2-1.1.3 spec/crunchbase/product_spec.rb
crunchbase_v2-1.1.2 spec/crunchbase/product_spec.rb
crunchbase_v2-1.1.1 spec/crunchbase/product_spec.rb
crunchbase_v2-1.1.0 spec/crunchbase/product_spec.rb