[rspec-devel] If you set an expectation on something that's already stubbed, should it return the stubbed value?

Pat Maddox pergesu at gmail.com
Sat Sep 13 17:42:02 EDT 2008


Okay folks, I've implemented this and pushed it to
http://github.com/pat-maddox/rspec/tree/no-stub-shadowing

The interesting commit is at
http://github.com/pat-maddox/rspec/commit/72facc08b9a5df6da84c50f4f04cebc77bdfa613

RSpec suite is green.  I've also run this against
* giternal
* cucumber
* merb
* three rails apps

and all are green.  So my suspicion that it shouldn't break anything
seems to be right in my case, as well as a couple other projects.  I'd
be interested to know how it affects other people.

Pat


More information about the rspec-devel mailing list