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 ()
  post aikotoba.new_session_path, params: {account: {email: .email, password: .password}}
  follow_redirect!
end

#aikotoba_sign_outObject



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