On Thu, Mar 17, 2011 at 5:25 PM, Pete Campbell <li...@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.
>
> Controller:
> def show
>  @counter = Counter.increment if count_me
Should this be params[:count_me]? ---^

Best,
Michael Guterl
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to