[rspec-devel] [ rspec-Bugs-6903 ] Rendering a partial in a view makes the view spec blow up

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 26 21:12:56 EST 2006


Bugs item #6903, was opened at 2006-11-26 19:12
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6903&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Pat Maddox (pergesu)
Assigned to: Nobody (None)
Summary: Rendering a partial in a view makes the view spec blow up

Initial Comment:
In a view spec, say you call
render "people/show"

and the show.rhtml file consists solely of
<%= render :partial => "person", :object => @person %>

the spec blows up with
No rhtml, rxml, rjs or delegate template found for spec/rails/view_spec/_person in /Users/pergesu/work/givelist/trunk/config/../app/views

Changing the render call to be
render :partial => "people/person", :object => @person

works fine.  So the view spec is making something relative to the root views dir, when *I think* it should probably be relative to people in this case.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6903&group_id=797


More information about the rspec-devel mailing list