[rspec-users] locals in partials

Hans de Graaff hans at degraaff.org
Fri Oct 12 11:51:43 EDT 2007

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 ...

Something like that should work. Otherwise, please post your code,
that'll make it a lot easier to help out.

Kind regards,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/rspec-users/attachments/20071012/05b2fd27/attachment.bin 

More information about the rspec-users mailing list