Skip to content

Commit

Permalink
fix testing section in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thedumbtechguy committed Dec 21, 2024
1 parent aa1c233 commit 446eb54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ require 'chaotic_job'
Example test:

```ruby
class WorkflowTest < Minitest::Test
class WorkflowTest < ActiveJob::TestCase
include ChaoticJob::Helpers

def test_workflow_completion
Expand All @@ -210,7 +210,6 @@ end
ChaoticJob provides several helpful methods for testing workflows:

- `perform_all_jobs`: Processes all enqueued jobs, including those enqueued during job execution
- `enqueued_jobs`: Returns the current number of jobs in the queue

For testing with specific job processing libraries like Sidekiq or Delayed Job, you can still use their respective testing modes, but ChaoticJob is recommended for testing ChronoForge workflows as it better handles the complexities of nested job scheduling and wait states.

Expand Down

0 comments on commit 446eb54

Please sign in to comment.