[rspec-users] content_for

Carl-Johan Kihlbom
Mon, 04 Jun 2007 13:18:22 -0000

On 5/23/07, Kyle Hargraves <philodespotos at gmail.com>
wrote:
> Any ideas how I would go about writing specs for views which make use
> of content_for?
>
> I''d like, for example, to be able to specify that ABC view places
XYZ
> in the sidebar, which I do using content_for(:sidebar).
>
> Am I missing something obvious?
>
> Kyle

I have the same problem, several of my views use content_for to
populate a sidebar. How can I write examples for them?

/ CJ