Module: ActiveAuthentication::Test::Helpers

Defined in:
lib/active_authentication/test/helpers.rb

Instance Method Summary collapse

Instance Method Details

#sign_in(user, password: "password") ⇒ Object



4
5
6
# File 'lib/active_authentication/test/helpers.rb', line 4

def (user, password: "password")
  post session_path, params: {email: user.email, password: password}
end

#sign_outObject



8
9
10
# File 'lib/active_authentication/test/helpers.rb', line 8

def sign_out
  delete session_path
end