samedi 27 février 2016

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

What is the difference between these two ?

Aucun commentaire:

Enregistrer un commentaire