Module: Brut::SpecSupport::SessionSupport

Included in:
ComponentSupport, HandlerSupport
Defined in:
lib/brut/spec_support/session_support.rb

Overview

Convienience methods for creating sessions inside a test.

Instance Method Summary collapse

Instance Method Details

#empty_sessionObject

Create an empty session, using the class configured by the app



4
# File 'lib/brut/spec_support/session_support.rb', line 4

def empty_session = Brut.container.session_class.new(rack_session: {})