Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

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.

@JonRowe JonRowe force-pushed the allow-mutex-mocks branch from a27d344 to e902725 Compare April 26, 2020 09:21
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants