| | 319 | === Testing |
|---|
| | 320 | * where will you be without test cases Phaedrus? New version comes with a baked in mechanism to write test cases. |
|---|
| | 321 | First make sure that, you have bdrb_test_helper.rb in test directory of your rails app ( run |
|---|
| | 322 | rake backgroundrb:setup, if you dont have one ). |
|---|
| | 323 | Just put your worker test cases in test/unit directory of your rails application and require the helper. |
|---|
| | 324 | Now, you should be good to go. |
|---|
| | 325 | |
|---|
| | 326 | require File.join(File.dirname(__FILE__) + "/../bdrb_test_helper") |
|---|
| | 327 | require "god_worker" |
|---|
| | 328 | |
|---|
| | 329 | context "When god worker starts" do |
|---|
| | 330 | setup do |
|---|
| | 331 | god_worker = GodWorker.new |
|---|
| | 332 | end |
|---|
| | 333 | end |
|---|
| | 334 | |
|---|
| | 335 | |
|---|
| | 336 | |
|---|