Sha256: 9af6b899a6a9f2caa04d1c4714ef5ef1d7d1ab3c76ff592ff494bf65916808cb
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
require 'spec_helper' describe PageRankr::Ranks::MozRank do describe '#run' do let(:tracker){described_class.new(site)} subject(:result){tracker.run} context 'with match', :vcr do let(:site){'http://www.google.com'} it{is_expected.to be_number > 0} end context 'with no match', :vcr do let(:site){'http://please-dont-register-a-site-that-breaks-this-test.com'} # always returns a result it{is_expected.to eq(0)} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
PageRankr-4.6.1 | spec/ranks/moz_rank_spec.rb |
PageRankr-4.6.0 | spec/ranks/moz_rank_spec.rb |