Displaying 2 results from an estimated 2 matches for "task_checker_work".
Did you mean:
task_checker_worker
2006 Jul 18
7
backgroundrb and autotest
...upport/dependencies.rb:123:in
`const_missing'': uninitialized constant BackgrounDRb (NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing''
from /home/jhughes/work/project-tracker-rails/trunk/config/../lib/workers/task_checker_worker.rb:5
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require''
from ./test/unit/task_checker_worker_test.rb:2
from /usr/lib/ruby/gems/1.8/gems/activesu...
2006 Jul 19
1
Testing worker classes
...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 analysis is in many respects
contingent upon an ability to connect...