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?

http://codepad.org/P2uIlJVj

Thanks,
Nick
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to