[rspec-users] Clear a stub

Steve vertebrate at gmail.com
Sun Jul 27 11:56:58 EDT 2008

I can't find it on the RSpec site, and my googling is turning up 
nothing. Is there a way to clear a stub once set? I'm experiencing some 
behavior where I have some nested describes, with "before :each" and I 
need to change the stub from the parent. I thought it would just 
overwrite the previous stub value, but instead it seems to turn the stub 
into an array making the previous value the first element, and then the 
new value the second.


More information about the rspec-users mailing list