[rspec-users] Mock should receive no messages?

David Chelimsky dchelimsky at gmail.com
Wed Jun 3 14:37:10 EDT 2009


On Wed, Jun 3, 2009 at 1:19 PM, Sebastian W. <lists at ruby-forum.com> wrote:
> David Chelimsky wrote:
>> On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. <lists at ruby-forum.com>
>> wrote:
>>> Hello all,
>>> Is there a way to explicitly tell a mock to expect no messages and give
>>> an error if it does? I believe this is the default behavior, but thought
>>> it might be nice for code readers to see.
>>
>> You can tell it to expect not to receive a specific message, but there
>> is no way to say that it should not receive any messages.
>>
>> Cheers,
>> David
>
> Okay, cool - feature request? : )

You never have to ask to make a feature request - just make one:

http://rspec.lighthouseapp.com

> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list