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

Allow mocking Mutex.new #411

Merged
merged 1 commit into from Apr 26, 2020
Merged

Allow mocking Mutex.new #411

merged 1 commit into from Apr 26, 2020

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Apr 26, 2020

No description provided.

Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Nice!
I hope new is the only method that users would stub :D

@JonRowe
Copy link
Member Author

JonRowe commented Apr 26, 2020

I hope new is the only method that users would stub :D

Its the only one that matters / breaks, stubbing on an individual instance of mutex would affect only those instances, and stubbing using any_instance is just going to be something we don't support (its not really reasonable to).

@JonRowe JonRowe merged commit f38f784 into master Apr 26, 2020
@JonRowe JonRowe deleted the allow-mutex-mocks branch April 26, 2020 11:44
JonRowe added a commit that referenced this pull request May 2, 2020
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…-mutex-mocks

Allow mocking Mutex.new

---
This commit was imported from rspec/rspec-support@da36620.
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.

None yet

3 participants