mintdigital / pyrite

Easy peasy in-browser testing with Selenium
MIT License
16 stars 1 forks source link

create assert_location helper #3

Open rodreegez opened 14 years ago

rodreegez commented 14 years ago

Create an assertion equivalent to

assert_match %r|#{some_path(@sth)}|, browser.location

rodreegez commented 14 years ago

The case for this is being able to check you are on the page you expect to be on. The case against is that the page could well be displaying a horrible error or entirely the wrong thing.

Thoughts?