Ben Lovell
4/17/2009 4:28:00 PM
[Note: parts of this message were removed to make it a legal post.]
On Fri, Apr 17, 2009 at 5:05 PM, Fernando Perez <pedrolito@lavache.com>wrote:
> Hi,
>
> How to create an assertion that only checks that a given method is
> invoked at least once.
>
> @controller.expects(:current_user).returns(@user)
>
>
>
How about:
@controller.expects(:current_user).at_least_once.returns(@user)
Ben