Module: Nyauth::Test::FeatureMacros
- Includes:
- SessionConcern
- Defined in:
- lib/nyauth/test/feature_macros.rb
Instance Method Summary
collapse
#current_authenticated, #require_authentication!, #signed_in?, #store_signed_in_status
Instance Method Details
#sign_in(client) ⇒ Object
6
7
8
9
10
|
# 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 ⇒ Object
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
|