Sha256: 84f81d3d1a95a1b109408e35b41fa969844482b1e4c82c0ea9e241fda3430bb7

Contents?: true

Size: 258 Bytes

Versions: 7

Compression:

Stored size: 258 Bytes

Contents

module Webrat
  class Session
    def current_host
      URI.parse(current_url).host || @context.host || "www.example.com"
    end

    def response_location_host
      URI.parse(response_location).host || @context.host || "www.example.com"
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
adva-0.1.4 lib/webrat_patch.rb
adva-0.1.3 lib/webrat_patch.rb
adva-0.1.2 lib/webrat_patch.rb
adva-0.1.1 lib/webrat_patch.rb
adva-0.1.0 lib/webrat_patch.rb
adva_cms-0.0.1 lib/webrat_patch.rb
adva-0.0.1 adva_cms/lib/webrat_patch.rb