samedi 21 février 2015

Rails support folder. Do I have to include the module it in my test_helper or is it automatic?

I have this module written in my test/support folder.



module YourHelper
def register_user(user)
visit home_page
fill_in 'user_name', :with => user.username
fill_in 'password', :with => user.password
click_button 'sign_up_button'
end
end


Should I put it in my test/support folder or my test/helper folder?


Aucun commentaire:

Enregistrer un commentaire