scope addressable

This commit is contained in:
Thomas Walpole 2016-01-27 15:01:33 -08:00
parent 959fddf44c
commit f26351c0f2
1 changed files with 3 additions and 3 deletions

View File

@ -17,16 +17,16 @@ module Capybara
session.current_url
else
if options[:only_path]
Addressable::URI.parse(session.current_url).path
::Addressable::URI.parse(session.current_url).path
else
Addressable::URI.parse(session.current_url).request_uri
::Addressable::URI.parse(session.current_url).request_uri
end
end
if @expected_path.is_a? Regexp
@actual_path.match(@expected_path)
else
Addressable::URI.parse(@expected_path) == Addressable::URI.parse(@actual_path)
::Addressable::URI.parse(@expected_path) == Addressable::URI.parse(@actual_path)
end
end