cheezy/page-object — pull request #136 by gshakhn (2012-10-25 16:34:04+00:00)
Title: Make attach_to_url work with partial urls in selenium.

The attach_to_url RDoc claims partial urls should work, but they don't
work in Selenium since there is a == check instead of a .include?.

* Add assertion to the attach to window then steps to verify that the
attach generated an expected result.
* Add test to expose functionality. With the existing logic, selenium
would iterate through all the existing handles until it found a full
match on the url. The existing attach_to_url test wasn't hitting the
full match, but the last handle switched to was the one looked for, so
existing test passed by accident.
* Change selenium's attach_to_url implementation to use .include?.