Module: Aikotoba::Test::AuthenticationHelper::Request
- Defined in:
- lib/aikotoba/test/authentication_helper.rb
Instance Method Summary collapse
Instance Method Details
#aikotoba_sign_in(account) ⇒ Object
12 13 14 15 |
# File 'lib/aikotoba/test/authentication_helper.rb', line 12 def aikotoba_sign_in(account) post aikotoba.new_session_path, params: {account: {email: account.email, password: account.password}} follow_redirect! end |
#aikotoba_sign_out ⇒ Object
7 8 9 10 |
# File 'lib/aikotoba/test/authentication_helper.rb', line 7 def aikotoba_sign_out delete aikotoba.destroy_session_path follow_redirect! end |