spec/crunchbase/investment_spec.rb in crunchbase_v2-1.0.0 vs spec/crunchbase/investment_spec.rb in crunchbase_v2-1.1.0
- old
+ new
@@ -1,20 +1,12 @@
require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")
module Crunchbase
- describe Investment do
-
- describe "advanced indexing" do
- before(:all) do
- @all_investments = Investment.lists_for_permalink("facebook")
- end
+ describe Investment, :vcr do
+ subject { Investment.lists_for_permalink("facebook") }
- it "should pull from web api" do
- @all_investments.per_page.should == 1000
- @all_investments.current_page.should == 1
- @all_investments.size.should == 3
- @all_investments.items.count.should == 3
- end
- end
-
+ it_has_behavior 'pagination'
+ it_behaves_like 'a container', 3
+
+ its(:size) { should eq(3) }
end
end