cheezy/page-object — pull request #106 by osugregor (2012-06-28 16:52:57+00:00)
Title: New if_page function

I’ve really enjoyed using the page-object and factory gems. I have a common scenario in which I wanted to use a step definition for multiple pages, especially when the feature set in the page is re-used template code. However, lets say the ids for the pages are slightly different. Therefore I often found myself doing this:
```ruby
When \^I save the form$/ do
on_page(NewProduct).save if @current_page == MyPage
on_page(EditProduct).update if @current_page == MyPage
end
```
Adding an if_page adds a number of new, clean step definitions
```ruby
When \^I save the form$/ do
if_page(NewProduct).save
if_page(EditProduct).update
end
```
Please provide me some input as to why it is accepted/declined.
Thanks!