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

noreply at rubyforge.org noreply at rubyforge.org
Mon Nov 19 00:36:36 EST 2007


Feature Requests item #14969, was opened at 2007-10-22 23: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"

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

Comment By: Chad Humphries (spicycode)
Date: 2007-11-19 00:36

Message:
Moved to http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/126-14969-render-should-support-text-property-like-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