Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/sorcery/test_helpers/internal.rb

Overview

a patch to fix a bug in testing that happens when you ‘destroy’ a session twice. After the first destroy, the session is an ordinary hash, and then when destroy is called again there’s an exception.

Instance Method Summary collapse

Instance Method Details

#destroyObject

rubocop:disable Style/ClassAndModuleChildren



21
22
23
# File 'lib/sorcery/test_helpers/internal.rb', line 21

def destroy
  clear
end