What is the difference between visit and current_path and use of .should in rails?
Then /^I should be on the free signup page$/ do
*current_path.should == free_signup_path*
end
Then /^I should be on the free signup page$/ do
*visit free_signup_path*
end
Aucun commentaire:
Enregistrer un commentaire