Displaying 1 result from an estimated 1 matches for "view_container".
2007 Apr 12
11
Test if view renders appropriate partial?
Hello,
I am testing out a partial that calls another, general purpose
partial as part of its processing. Is there a class I can mock in
Rails views to accomplish what I need? That is, could I do something
like the following:
SomeClass.should_receive(:render).with(:partial => "foo", :locals => {
:bars => bars })
I tried breakpointing the view, and it looks like I am greeted