-
-
Notifications
You must be signed in to change notification settings - Fork 358
Consider deprecating and/or removing #stub! and #unstub! at some point #122
Comments
Agree 100% but this will be a wide-reaching change, so we need to treat it with care. Here's what I propose:
|
Please consider retaining The latest version of I do a global stub for some core functionality that would otherwise slow down the tests, but in one place in my suite I do actually test that functionality and so I use a |
Had just the same issue as @tovodeverett described with test suite breaking after |
Does |
I'm a fan of deprecating I also feel that conflict with a 3rd party library (which has always existed) should be resolved on that library, not on the main library... |
Let's go ahead and deprecate the now, with the plan to remove them in 3.0. |
#stub!
and#unstub!
are just aliases for#stub
and#unstub
, respectively. They don't seem to serve a lot of purpose at this point. I'm not really sure what the original reason to have both was.Given that they are methods added to every object in the system, and it behooves us to add as few methods to every object in the system as possible, I think we should consider deprecating and/or removing
#stub!
and#unstub!
.Thoughts?
The text was updated successfully, but these errors were encountered: