Hi Jon, I was having trouble with partials a while ago and I think it might have info on solving your problem
http://www.nabble.com/spec%27ing-view-render-partial-collection%2C-local-variable-not-found-tf4577761.html I'm guessing your referring to when you called your parital in a spec: it "should show game name" do render :partial =>"games/game", :locals => {:game => @game} response.should have_tag('h3', /The Battle for Blaze/) end You need to provide a bit more information about your specs such as code and reported error. On 10/12/07, Jonathan Linowes <[EMAIL PROTECTED]> 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 > > linoj > > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- Monsterbox Productions putting small businesses on-line 1319 Victoria Avenue East Thunder Bay, Ontario P7C 1C3 Canada Andrew WC Brown web-developer and owner [EMAIL PROTECTED] P: 807-626-9009 F: 807-624-2705
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users