Sha256: d9f880007a18cade51f9d1e2555ba831229da62c3bd84e551c755363b24385ab

Contents?: true

Size: 919 Bytes

Versions: 2

Compression:

Stored size: 919 Bytes

Contents

require 'spec_helper'

describe PageRankr do
  describe "#rank_trackers" do
    subject{ PageRankr.rank_trackers }

    it{ is_expected.to include(:alexa_us) }
    it{ is_expected.to include(:alexa_global) }
    it{ is_expected.to include(:google) }
    it{ is_expected.to include(:moz_rank) }
  end

  describe "#backlink_trackers" do
    subject{ PageRankr.backlink_trackers }

    it{ is_expected.to include(:bing) }
    it{ is_expected.to include(:google) }
    it{ is_expected.to include(:yahoo) }
  end

  describe "#index_trackers" do
    subject{ PageRankr.index_trackers }

    it{ is_expected.to include(:google) }
    it{ is_expected.to include(:bing) }
  end

  describe "::Site" do
    [nil, '', 'batman.thedarkknight'].each do |value|
      it "raises an exception when given #{value.inspect}" do
        expect{PageRankr::Site(value)}.to raise_error(PageRankr::DomainInvalid)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
PageRankr-4.6.1 spec/page_rankr_spec.rb
PageRankr-4.6.0 spec/page_rankr_spec.rb