Class: Webrat::Session
Instance Method Summary collapse
Instance Method Details
#current_host ⇒ Object
3 4 5 |
# File 'lib/webrat_patch.rb', line 3 def current_host URI.parse(current_url).host || @context.host || "www.example.com" end |
#response_location_host ⇒ Object
7 8 9 |
# File 'lib/webrat_patch.rb', line 7 def response_location_host URI.parse(response_location).host || @context.host || "www.example.com" end |