On Fri, 2007-10-12 at 10:33 -0400, Jonathan Linowes wrote: > hiya, in specing a partial, how can i assign a local var that is > normally passed via :locals ? i tried adding :locals => to the render > call but that doesnt seem to take
it 'should include :var' render :partial => 'your/partial', :locals => {:var => 'value'} response.should ... end Something like that should work. Otherwise, please post your code, that'll make it a lot easier to help out. Kind regards, Hans
signature.asc
Description: This is a digitally signed message part
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users