-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Don't auto-configure global concepts when rspec-mocks is required #7
Comments
This should only happen when |
Looking at the code now, looks like you've done a great job of compartmentalizing the "extensions to the Object namespace" and all the rest, so hopefully this won't be too painful to implement. |
I'm wondering if something as simple as this will be close to what's need: Breaks 4 examples, though, so currently looking into that. |
I'm about to push the fix. |
It's not quite that simple :) |
require 'rspec/mocks' does not add methods to Object or ExampleGroup
Closed by e8b3fde. |
Er, if you say so ;-) Funnily enough, I found that my "simple" solution actually does pass all specs if I remove the Nice work anyway. Cheers, |
There was another step to this, which is that I wanted to simplify the API for the consuming framework. With the changes I made, rspec-core doesn't need to FWIW, I wasn't clear that you were working on a solution until I your comment with the gist above, at which point I was pretty much done with the work I was doing. I appreciate your efforts to contribute and don't want to waste your time when doing so, so I apologize for not making it more clear that this was in progress on my end. Cheers, |
Don't worry about it, it's not like it took me long to do my 2-line patch + feature. The only thing that matters is that the project moves forward, one way or another. Cheers, |
Background: http://github.com/rspec/rspec-rails/issues#issue/114
require 'rspec-mocks'
should not do any of:should_receive
toObject
should_not_receive
toObject
stub
toObject
double
,mock
, orstub
methods toExampleGroup
or any the test-case class of other consuming frameworkThe text was updated successfully, but these errors were encountered: