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