module Foyer::TestHelpers

Public Instance Methods

sign_in(user) click to toggle source
# File lib/foyer/test_helpers.rb, line 3
def sign_in(user)
  session[Foyer.session_key] = { id: user.id }
end
sign_out() click to toggle source
# File lib/foyer/test_helpers.rb, line 7
def sign_out
  session.delete Foyer.session_key
end