[rspec-users] Counter.should_not_receive(:message) not working?
mguterl at gmail.com
Thu Mar 17 18:31:57 EDT 2011
On Thu, Mar 17, 2011 at 5:25 PM, Pete Campbell <lists at ruby-forum.com> wrote:
> I'm trying to test a Rails controller and am having trouble getting
> SHOULD_NOT_RECEIVE to work on a class method. I can never get
> Counter.should_not_receive(:xxx) to fail when the message 'xxx' is sent.
> def show
> @counter = Counter.increment if count_me
Should this be params[:count_me]? ---^
More information about the rspec-users