Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Object#stub instead of rr #409

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Use Object#stub instead of rr #409

merged 2 commits into from
Jan 24, 2024

Conversation

ydah
Copy link
Member

@ydah ydah commented Jan 24, 2024

Since the last commit for rr is in 2022, and currently, only the stub feature of rr is being used in committee, I believe it is possible to replace this with Object#stub provided by Minitest. In general, I think it's better to minimize dependencies. WDYT?

Since the [last commit for rr is in 2022](https://github.com/rr/rr/commits/master/), and currently, only the `stub` feature of rr is being used in committee, I believe it is possible to replace this with [Object#stub](https://www.rubydoc.info/gems/minitest/5.3.0/Object:stub) provided by Minitest. In general, I think it's better to minimize dependencies.
Copy link
Member

@brandur brandur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Use of rr probably dates all the way back to when I wrote this originally — rr was kind of a trendy choice back in those days. Use of Object#stub seems like a good idea, especially given how few uses of mocking there are elsewhere.

@brandur brandur merged commit f0611dc into interagent:master Jan 24, 2024
6 checks passed
@ydah ydah deleted the removerr branch January 24, 2024 14:51
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