Module: Nyauth::Test::FeatureMacros

Includes:
SessionConcern
Defined in:
lib/nyauth/test/feature_macros.rb

Instance Method Summary collapse

Instance Method Details

#sign_in(client) ⇒ Object



6
7
8
9
10
# File 'lib/nyauth/test/feature_macros.rb', line 6

def (client)
  Nyauth::Nyan.on_test_request do |nyauth_nyan|
    nyauth_nyan.session.store(client, client.class.name.demodulize.underscore)
  end
end

#sign_outObject



12
13
14
15
16
# 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