Sha256: e737f302cda1b25837f92dfad879ea16b9be525f4f49b4ae4795de01ac61c853
Contents?: true
Size: 866 Bytes
Versions: 10
Compression:
Stored size: 866 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "spec_helper.rb") module Crunchbase describe NewItem do describe "advanced indexing" do before(:all) do @all_news = NewItem.lists_for_permalink("facebook") end it "should pull from web api" do puts @all_news.items.first.title puts @all_news.next_page_url @all_news.per_page.should == 1000 @all_news.current_page.should == 1 end it "should get oranization all news list" do @all_news.items.count.should == 3116 end end it "Fetched all news data paging" do page = 4 second_news = NewItem.lists_for_permalink("facebook", {page: page}) second_news.next_page_url.should == nil second_news.per_page.should == 1000 second_news.current_page.should == page end end end
Version data entries
10 entries across 10 versions & 1 rubygems