Class: Furnish::RunningSchedulerTest

Inherits:
SchedulerTest show all
Defined in:
lib/furnish/test.rb

Overview

Inherits from SchedulerTestCase and manages a running scheduler in conjunction with all the other features.

Instance Attribute Summary

Attributes inherited from SchedulerTest

#sched

Instance Method Summary collapse

Methods inherited from SchedulerTest

#assert_solved, #refute_solved

Instance Method Details

#setupObject

:nodoc:



107
108
109
110
# File 'lib/furnish/test.rb', line 107

def setup # :nodoc:
  super
  @sched.run
end

#teardownObject

:nodoc:



112
113
114
115
116
# File 'lib/furnish/test.rb', line 112

def teardown # :nodoc:
  @sched.stop
  sleep 0.3 while @sched.running?
  super
end