module Nyauth::Test::FeatureMacros

Public Instance Methods

sign_in(client) click to toggle source
# File lib/nyauth/test/feature_macros.rb, line 6
def sign_in(client)
  Nyauth::Nyan.on_test_request do |nyauth_nyan|
    nyauth_nyan.session.store(client, client.class.name.demodulize.underscore)
  end
end
sign_out() click to toggle source
# File lib/nyauth/test/feature_macros.rb, line 12
def sign_out
  Nyauth::Nyan.on_test_request do |nyauth_nyan|
    nyauth_nyan.session.session.clear
  end
end