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 support for spec suites using mocking frameworks other than RSpec Mocks #21

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

jhmoore
Copy link

@jhmoore jhmoore commented Jan 25, 2017

Right now the matcher file has a hardcoded require statement for RSpec Mocks (added in #2). This line is causing errors for us, because we use RR in our specs rather than RSpec Mocks. Anybody using any of the other mocking frameworks (e.g. Mocha, FlexMock) is probably also going to run into similar issues.

It doesn't look like there's anywhere in the gem where RSpec Mocks is used, and the tests all seem to pass with the require statement removed.

PS: great gem. Love it!

This allows support for spec suites using other mocking frameworks
@trotzig
Copy link
Contributor

trotzig commented Jan 25, 2017

Excellent catch, thanks for fixing! We are using mocha in an old app that we still maintain, and I bet this will help upgrading.

@trotzig trotzig merged commit 958fdfb into sds:master Jan 25, 2017
@trotzig
Copy link
Contributor

trotzig commented Jan 25, 2017

Released in 0.8.0

@jhmoore
Copy link
Author

jhmoore commented Jan 25, 2017

Awesome, thanks so much!

@jhmoore jhmoore deleted the remove_rspec_mocks branch January 25, 2017 21:53
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