[rspec-devel] [ rspec-Feature Requests-14969 ] 'render' should support :text property like rails

noreply at rubyforge.org noreply at rubyforge.org
Mon Oct 22 23:15:47 EDT 2007


Feature Requests item #14969, was opened at 2007-10-23 03:15
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=14969&group_id=797

Category: None
Group: None
Status: Open
Priority: 3
Submitted By: Steve V (vertebrate)
Assigned to: Nobody (None)
Summary: 'render' should support :text property like rails

Initial Comment:
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"

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=14969&group_id=797


More information about the rspec-devel mailing list