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

Srinivas Aki srinivas.aki at gmail.com
Wed Aug 15 01:01:46 EDT 2007


ippudu busy aa

On Aug 14, 2007, at 9:54 PM, <noreply at rubyforge.org>  wrote:

> 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: Closed
>> Resolution: Accepted
> Priority: 3
> Submitted By: Jay Levitt (jaylev)
>> Assigned to: David Chelimsky (dchelimsky)
> 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-15 04:54
>
> Message:
> Applied to r2350
>
> ----------------------------------------------------------------------
>
> Comment By: Jay Levitt (jaylev)
> Date: 2007-08-13 15:17
>
> Message:
> Oops.  Missed that little checkmark.
>
> ----------------------------------------------------------------------
>
> 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
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel



More information about the rspec-devel mailing list