Skip to content

Commit

Permalink
scope addressable
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Jan 27, 2016
1 parent 959fddf commit f26351c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capybara/queries/current_path_query.rb
Expand Up @@ -17,16 +17,16 @@ def resolves_for?(session)
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)

This comment has been minimized.

Copy link
@azarbayejani

azarbayejani Jan 26, 2017

The second Addressable needs a scope resolution operator on it, too.

This comment has been minimized.

Copy link
@twalpole

twalpole Jan 26, 2017

Author Member

so it does - thanks

end
end

Expand Down

0 comments on commit f26351c

Please sign in to comment.