On Wed, 2007-08-29 at 14:35 +0200, Mathias Stjernström wrote: > And to describe that: http://pastie.textmate.org/91995 > > The problem is that (assigns[:advert] = advert) creates an instance > variable and :collection => @adverts creates a local variable called > advert. > > Is there a way of assigning a local variables in a view/template from > my description/spec?
I'm using "render :partial => 'some_partial', :object => @mock_object" in those cases. 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