Topic: What page am i on

i am using cucumber and i am suppose to be redirected
but i don't know if this is happening or not.

Feature

Then I should be on the root page

Step Def

Then /^I should be on ([^\"]*)$/ do |page_name|
  response.request.path.should == path_to(page_name)
end