[Rails] Re: No more @controller.expects in Test::Unit?
On Jul 30, 10:53 am, Fernando Perez <li...@ruby-forum.com> wrote:
> > Do you explicitly require mocha somewhere?
>
> I don't use mocha. Did rails delegate the stubbing to mocha recently? So
> that could be my missing piece of the puzzle. Where should I require it
> in? test_helper.rb?
>
it always has, but rails may have been accidentally requiring it for
you
Fred
> > By the way you no longer need to setup @controller/@request/@response -
> > actioncontroller::testcase does that for you
>
> Indeed, I'll update my tests accordingly, thanks for pointing that out.
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home