scope addressable
This commit is contained in:
parent
959fddf44c
commit
f26351c0f2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue