module Challah::Testing
Public Instance Methods
signin_as(user)
click to toggle source
Sign the given user instance in
# File lib/challah/test.rb, line 30 def signin_as(user) Session.create!(user, nil, nil, user.class) end
Also aliased as: login_as
signout()
click to toggle source
Sign the given user instance out
# File lib/challah/test.rb, line 36 def signout Session.destroy end
Also aliased as: logout