Sha256: 5eac97926b78043b252b41c6778e508f73b637a89816d86fd524b4a6c164daea

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

require "spec_helper"


describe ActionDispatch::Http::URL do

  class FakeURL
    include ActionDispatch::Http::URL
    attr_accessor :protocol
  end

  it "should deduce protocole name from protocol" do
    url = FakeURL.new

    url.protocol = "http://"
    url.protocol_name.should == "http"

    url.protocol = "https://"
    url.protocol_name.should == "https"
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogit-0.8.0 spec/lib/action_dispatch/http/url_spec.rb
blogit-0.7.0 spec/lib/action_dispatch/http/url_spec.rb
blogit-0.6.0 spec/lib/action_dispatch/http/url_spec.rb