-
-
Notifications
You must be signed in to change notification settings - Fork 354
Resolves rspec/rspec-core#950 and adds specs #335
Conversation
* Hopefully the code clarity is improved here * We also change the behavior by *not* duping an object if `space` is not yet initialized. This should have been the behavior from the beginning, but it was overlooked and did not have specs.
I like it... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a merge blocker by any means, but I think if ::RSpec::Mocks.space.nil?
is a bit clearer than if !::RSpec::Mocks.space
. Not worth taking extra time to fixup, though, unless you wind up doing more work here for some other reason.
👍 Much better. Did you confirm your change fixes the spork issue? I expect it does (given that we now know that the old code would unnecessarily dup), but figured it was worth asking. |
Pushed new commits based on your comments.
Yep! I used your Ready for re-review :) |
LGTM. I guess this just needs a changelog and to be merged into the appropriate branches. |
❤️ |
space
isnot yet initialized. This should have been the behavior from the
beginning, but it was overlooked and did not have specs.