[rspec-users] view specs with partials

Jed Hurt jed.hurt at gmail.com
Sat Dec 2 21:10:04 EST 2006


OFF TOPIC: I couldn't help but notice that the helper you're using is
"crumbs". Is this an implementation of breadcrumbs? I have been trying
to think of some elegant ways to implement breadcrumbs in my app. Care
to share a bit?

On 11/29/06, Mathias Biilmann Christensen <info at mathias-biilmann.net> wrote:
> Great to finally having view specs work with edge rails!
>
> To bad I can't actually use them, since I use helper methods in my
> views. Has anybody gotten calls to helper methods to work in view
> tests under Rails 1.2 RC1?
>
> Currently I get "undefined method `crumbs' for #<#<Class:0x340b70c>:
> 0x340ab40>" when the view is calling the crumbs helper (<%= crumbs
> (@var) %>)
>
> Hope there's a solution out there!
>
> Regards,
> Mathias
>
>
> On Nov 29, 2006, at 7:35 AM, David Chelimsky wrote:
>
> > On 11/28/06, Micah Martin <micah at 8thlight.com> wrote:
> >> That did the trick.  Thanks Pat.
> >>
> >>
> >> Micah Martin
> >>
> >> On Nov 28, 2006, at 5:40 PM, Pat Maddox wrote:
> >>
> >> Basically in the mean time, just do
> >> render :partial => "controller_name/partial_name"
> >>
> >> So like if the partial is named "person" and it's under the "people"
> >> views dir, it'd be
> >> render :partial => "people/person"
> >>
> >> That'll work until we get it fixed in the plugin.
> >
> > We got it fixed in the plugin. In trunk (rev 1174).
> >
> > Cheers,
> > David
> >
> >>
> >> _______________________________________________
> >> rspec-users mailing list
> >> rspec-users at rubyforge.org
> >> http://rubyforge.org/mailman/listinfo/rspec-users
> >>
> >>
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list