Class: Booth::Testing::Support::ForceLogin
- Inherits:
-
Object
- Object
- Booth::Testing::Support::ForceLogin
- Includes:
- Calls
- Defined in:
- lib/booth/testing/support/force_login.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/booth/testing/support/force_login.rb', line 12 def call login = ::Booth::Core::Sessions::CreateAndLogin.call(domain: request.host, scope:, credential:, request:) raise login.inspect if login.failure? nil end |