Sha256: 405ad1588f7d750d6ee2fbabb7871db2e82b7bdece26f4cd02cc66dd934f9a52

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

require 'spec_helper'

describe PageRankr::Site do
  describe "#scheme" do
    it "should set the scheme to http if no scheme is present" do
      PageRankr::Site("www.google.com").scheme.should == "http"
    end

    it "should use the scheme if it is provided" do
      PageRankr::Site("https://www.google.com").scheme.should == "https"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
PageRankr-4.4.1 spec/site_spec.rb
PageRankr-4.4.0 spec/site_spec.rb
PageRankr-4.3.0 spec/site_spec.rb
PageRankr-4.2.1 spec/site_spec.rb
PageRankr-4.2.0 spec/site_spec.rb
PageRankr-4.1.1 spec/site_spec.rb
PageRankr-4.1.0 spec/site_spec.rb
PageRankr-4.0.0 spec/site_spec.rb
PageRankr-3.2.1 spec/site_spec.rb
PageRankr-3.2.0 spec/site_spec.rb