Class: Furnish::RunningSchedulerTestCase

Inherits:
SchedulerTestCase 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 SchedulerTestCase

#sched

Instance Method Summary collapse

Methods inherited from SchedulerTestCase

#assert_solved, #refute_solved

Instance Method Details

#setupObject

:nodoc:



99
100
101
102
# File 'lib/furnish/test.rb', line 99

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

#teardownObject

:nodoc:



104
105
106
107
108
# File 'lib/furnish/test.rb', line 104

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