Skip to content

Conversation

@ahogappa
Copy link
Owner

Summary

  • Add Taski::TestHelper module for mocking task dependencies in unit tests
  • mock_task(TaskClass, key: value) to mock exported values without running tasks
  • assert_task_accessed / refute_task_accessed for verifying dependency access
  • Automatic isolation of indirect dependencies (only direct dependencies need mocking)
  • Support for both Minitest and RSpec test frameworks
  • Implementation uses Ruby's prepend to intercept task execution without modifying production code

Test plan

  • Run rake test - all 352 tests pass
  • Run rake standard - no style violations
  • Verify mock_task works with simplified syntax mock_task(FetchData, users: [1, 2, 3])

🤖 Generated with Claude Code

Add Taski::TestHelper module that allows mocking task dependencies
in unit tests. Key features:

- mock_task() to mock exported values without running tasks
- assert_task_accessed/refute_task_accessed for verification
- Automatic isolation of indirect dependencies
- Support for both Minitest and RSpec

Implementation uses prepend modules to intercept task execution
without modifying production code files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 21, 2026

Warning

Rate limit exceeded

@ahogappa has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 26 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ahogappa ahogappa merged commit 56518ce into master Jan 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants