Hi there, Is there any particular reason why stub is not stub.as_null_object by default? Or alternatively is there some nicer sugar for stub.as_null_object Is RSpec trying to discourage the use of stub.as_null_object, and if so why? TIA Andrew -- ------------------------ Andrew Premdas blog.andrew.premdas.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120509/980e5241/attachment.html>
On Wed, May 9, 2012 at 11:01 AM, Andrew Premdas <apremdas at gmail.com> wrote:> Hi there, > > Is there any particular reason why stub is not stub.as_null_object by > default?See https://github.com/rspec/rspec-mocks/issues/56