Module: PseudoKiosk::TestHelpers::Internal::Rails

Defined in:
lib/pseudo_kiosk/test_helpers/internal/rails.rb

Instance Method Summary collapse

Instance Method Details

#pseudo_kiosk_config_property_set(property, value) ⇒ Object



12
13
14
# File 'lib/pseudo_kiosk/test_helpers/internal/rails.rb', line 12

def pseudo_kiosk_config_property_set(property, value)
  ::PseudoKiosk::Config.send(:"#{property}=", value)
end

#pseudo_kiosk_reload!Object



5
6
7
8
9
10
# File 'lib/pseudo_kiosk/test_helpers/internal/rails.rb', line 5

def pseudo_kiosk_reload!
  PseudoKiosk::Config.init!
  PseudoKiosk::Config.reset!

  ActionController::Base.send(:include, PseudoKiosk::Controller)
end