lib/generators/leolay/templates/spec/helpers/application_helpers.rb in active_leonardo-0.1.0 vs lib/generators/leolay/templates/spec/helpers/application_helpers.rb in active_leonardo-0.2.0
- old
+ new
@@ -1,13 +1,13 @@
-module ApplicationHelpers
- def login_view_as(role=:user)
- user = Factory(role)
- fill_in 'user_email', :with => user.email
- fill_in 'user_password', :with => user.password
- click_button 'Login'
- end
- def login_controller_as(role=:user)
- user = Factory(role)
- #user.confirm! # or set a confirmed_at inside the factory. Only necessary if you are using the confirmable module
- sign_in user
- end
-end
+module ApplicationHelpers
+ def login_view_as(role=:user)
+ user = Factory(role)
+ fill_in 'user_email', :with => user.email
+ fill_in 'user_password', :with => user.password
+ click_button 'Login'
+ end
+ def login_controller_as(role=:user)
+ user = Factory(role)
+ #user.confirm! # or set a confirmed_at inside the factory. Only necessary if you are using the confirmable module
+ sign_in user
+ end
+end