Sha256: 1c8d5c56bee212df835bc8061c0a95e402af1804b840075daaa08f54f7e4def2

Contents?: true

Size: 721 Bytes

Versions: 10

Compression:

Stored size: 721 Bytes

Contents

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

module Crunchbase
  describe Ipo do

    describe "advanced indexing" do
      before(:all) do
        @all_ipos = Ipo.lists_for_permalink("facebook")
      end

      it "should pull from web api" do
        @all_ipos.per_page.should == 1000
        @all_ipos.current_page.should == 1
        @all_ipos.size.should == 3
        @all_ipos.items.count.should == 3

        puts @all_ipos.items.inspect
      end
    end

    it "should pull from web api" do
      ipo = Ipo.get("a3bc391490d52ba8529d1cfc20550a87")

      ipo.permalink.should == 'a3bc391490d52ba8529d1cfc20550a87'
      ipo.funded_companies[0].name.should == 'Facebook'
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
crunchbase_v2-1.0.0 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.9 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.8 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.7 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.6 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.5 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.4 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.3 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.2 spec/crunchbase/ipo_spec.rb
crunchbase_v2-0.0.1 spec/crunchbase/ipo_spec.rb