Displaying 1 result from an estimated 1 matches for "test_task_is_triggered".
2006 Jul 19
1
Testing worker classes
...lass, but that didn''t
work. I''m not sure where else I should include it. I know that
eventually I''ll need to put it in the non-test class that calls
new_worker, but I''m not there yet. Is testing workers just a
non-starter?
Here''s the test method:
def test_task_is_triggered
job_key = MiddleMan.new_worker :class => :task_checker_worker,
:args => tasks(:should_be_triggered)
@job_keys << job_key
# ...assertions go here...
end
thanks,
jh
--
James Hughes
Web application developer
Vancouver, BC
"Developing a coherent political...