https://rubyforge.org/tracker/index.php?
func=detail&aid=6713&group_id=797&atid=3150
I''m not sure if this is true of all helper methods but it is for the
following. In this case the forn_remote_tag is rendered as an empty
line.
Apprently helpers are not rendered in view tests...
template _xyz:
<div>
<% form_remote_tag :update => "some_div", :url => {:action
=> :something } %>
<textarea style="width: 100%" rows="2">Enter text
here.</textarea>
<% end_form_tag %>
</div>
failing spec:
specify "Form is rendered" do
render "/controller/_xyz"
response.should_have_tag ''form'', :parent => { :tag
=> "div" }
end
Micah Martin
8th Light, Inc.
www.8thlight.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/rspec-users/attachments/20061116/9c1ff95b/attachment.html