Sha256: 6ac0a4ac661d8be8c7951c807cf75c68e294fbd907d071b04243076615ae0019
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper.rb' describe SeoInfo::Google do describe 'indexed_pages' do let(:google) do path = 'spec/data/google_search.html' google = SeoInfo::Google.new('example.com') google.stub(:indexed_pages_page).and_return(File.read(path)) google end it "returns number greater than zero" do google.indexed_pages.should > 0 end end describe 'page rank' do let(:google) do google = SeoInfo::Google.new('example.com') google.stub(:page_rank_page).and_return('Rank_1:1:3') google end it "splits the result correctly" do google.page_rank.should == 3 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seo_info-0.0.2 | spec/specs/google_spec.rb |