On Thu, Mar 17, 2011 at 2:55 PM, Pete Campbell <li...@ruby-forum.com> wrote:
> Even simpler... > > describe 'Show' do > it 'should fail because increment is called' do > Counter.should_not_receive(:increment) # Incorrectly passes > get :show, :count_me => 'true' > end > it 'should fail because increment is not called' do > Counter.should_receive(:increment) # Correctly fails > get :show > end > end > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > I would say "count_me" is not returning what you think it is. Try adding "raise count_me.inspect" in the controller action to see if this is the case.
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users