Module: Helper::Sleep

Defined in:
lib/cucumber_salad/helper/sleep.rb

Class Method Summary collapse

Class Method Details

.disableObject



8
9
10
# File 'lib/cucumber_salad/helper/sleep.rb', line 8

def disable
  @enable_sleep = false
end

.enableObject



4
5
6
# File 'lib/cucumber_salad/helper/sleep.rb', line 4

def enable
  @enable_sleep = true
end

.enable?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/cucumber_salad/helper/sleep.rb', line 12

def enable?
  sleep 10000 if @enable_sleep
end