[rspec-users] stub vs stub!
lists at ruby-forum.com
Fri Mar 19 13:00:51 EDT 2010
RSpec's changelog says that in version 1.2.5:
"also alias_method :stub, :stub!, so you can stub with less bang"
which I've been taking advantage of a lot.
However, I just ran into a situation where using #stub caused an error
to occur, and changing to #stub! caused the error the disappear.
Any idea what's going on?
Posted via http://www.ruby-forum.com/.
More information about the rspec-users