[rspec-users] stub.as_null_object mock and double

Andrew Premdas
2012-05-09T16:01:18Z

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>