[#14969] 'render' should support :text property like rails
Reported by Chad Humphries | November 19th, 2007 @ 06:36 AM
The 'render' method for views should support a :text attribute similar to the 'render' method for Rails. One example of its usefulness would be in verifying that a layout calls yield.
render :text => '<div>yielded</div>', :layout => 'application'
response.should have_tag('div', 'yielded')
This is being posted as requested in the users list thread "Testing layouts with RSpec on Rails"
Comments and changes to this ticket
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Behaviour Driven Development for Ruby.
People watching this ticket
- Nobody is watching this ticket.
