[rspec-users] Testing layouts with RSpec on Rails

Steve vertebrate at gmail.com
Mon Oct 22 23:16:32 EDT 2007


On Mon, 22 Oct 2007 20:06:50 -0500, David Chelimsky wrote:

>> It would feel even less hackish if "render" supported :text like
>> rails render does. So you could do this:
>>
>> render :text => '<div>yielded</div>', :layout => 'application'
>> response.should have_tag('div', 'yielded')
> 
> Good idea. Feature request please.

Submitted as issue #14969.



More information about the rspec-users mailing list