Class: Booth::Test::Support::GetSessionValue

Inherits:
Object
  • Object
show all
Includes:
Logging, MethodObject
Defined in:
lib/booth/test/support/get_session_value.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/booth/test/support/get_session_value.rb', line 11

def call
  ::Capybara::Lockstep.synchronize

  result = nil
  in_new_window do
    result = page.get_rack_session[key]
  end

  debug { "session[#{key.inspect}] is: #{result.inspect}" }

  ::Capybara::Lockstep.synchronize
  result
end