spec/page_rankr_spec.rb in PageRankr-3.0.0 vs spec/page_rankr_spec.rb in PageRankr-3.0.1

- old
+ new

@@ -133,6 +133,14 @@ it{ should have_key(tracker) } it{ subject[tracker].should be_nil } end end end + + describe "::Site" do + [nil, '', 'batman.thedarkknight'].each do |value| + it "should raise an exception when given #{value}" do + expect{PageRankr::Site(value)}.should raise_error(PageRankr::DomainInvalid) + end + end + end end \ No newline at end of file