Skip to content

Commit 446eb54

Browse files
fix testing section in readme
1 parent aa1c233 commit 446eb54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ require 'chaotic_job'
186186
Example test:
187187

188188
```ruby
189-
class WorkflowTest < Minitest::Test
189+
class WorkflowTest < ActiveJob::TestCase
190190
include ChaoticJob::Helpers
191191

192192
def test_workflow_completion
@@ -210,7 +210,6 @@ end
210210
ChaoticJob provides several helpful methods for testing workflows:
211211

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

215214
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.
216215

0 commit comments

Comments
 (0)