Displaying 1 result from an estimated 1 matches for "test_scraper".
2006 Oct 12
6
BackgrounDRb newbie stuck at first base. Fresh pair of eyes needed
...rker:0x2a678b8>)
Set up a quick unit test, and not surprisingly fails on first respond_to
| def test_should_respond_to_progress_message_and_hse_notices_retrieved
MiddleMan.new_worker(:class => :scrape_worker, :args =>
{:message => "Uh -Oh"}, :job_key => :test_scraper, :ttl => 5)
s = MiddleMan[:test_scraper]
assert s.respond_to?(:progress)
assert s.respond_to?(:message)
assert s.respond_to?(:hse_notices_retrieved)
assert_equal "Uh -Oh", s.message
end|
I''m sure it must be something really obviou...