[rspec-devel] [ rspec-Patches-13016 ] [DOC] Point out that view specs render, well, a view

noreply at rubyforge.org noreply at rubyforge.org
Sun Aug 12 19:00:53 EDT 2007


Patches item #13016, was opened at 2007-08-12 21:22
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=13016&group_id=797

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jay Levitt (jaylev)
Assigned to: Nobody (None)
Summary: [DOC] Point out that view specs render, well, a view

Initial Comment:
In retrospect, it's obvious that "render 'people/show'" in a view spec will render the view app/views/people/show.html.erb.  I mean, it would have to.  It couldn't be any other way.  There's no way it can look at the 'show' action for people_controller and divine what template is being rendered, because views are specified independently of controllers.  "render 'people/show'" has nothing to do with the people controller or the show action.  That's a file path, there, is what I'm saying.  Obviously.

Nonetheless, I spent two hours rediscovering this obvious fact, and hence, this patch.

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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-08-12 23:00

Message:
Patch please (I see no file attachments)

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

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


More information about the rspec-devel mailing list