[rspec-users] Accessing content_for html in view specs?

Marcus Crafter crafterm at gmail.com
Mon Jul 16 07:02:03 EDT 2007


Hi All,

Hope all is going well.

I've got a few views that create some content using 'content_for' blocks

<% content_for :blah do %>
	.....
<% end %>

Has anyone worked out a way to be able to access the html that's  
generated inside those blocks?

Since they're not part of the view, have_tag('') seems to miss them,  
and at the moment I can't find a way to be able to access the  
generated content?

Any thoughts, ideas appreciated.

Cheers,

Marcus



More information about the rspec-users mailing list