Class: Booth::Testing::Support::AssertLoggedOut

Inherits:
Object
  • Object
show all
Includes:
Logging, Calls, Capybara::DSL
Defined in:
lib/booth/testing/support/assert_logged_out.rb

Instance Method Summary collapse

Instance Method Details

#callObject



13
14
15
16
17
18
19
# File 'lib/booth/testing/support/assert_logged_out.rb', line 13

def call
  ::Capybara::Lockstep.synchronize

  return unless logged_in?

  raise 'Expected nobody to logged in, but somebody is logged in.'
end