I think what David said before about spec views is take it with a grain of salt.<br>If you think you need to check the presence of every field go ahead.<br><br>When I spec out my views I only spec what needs to be there:<br>
<br>I won&#39;t check for the presence of a form fields new.rhtml_spec.rb<br>I would place my fields in a partial called fields and I spec their presence in _fields.html_spec.rb<br>I would spec in my new.rhtml_spec.rb if the partial fields was rendered.
<br><br>It may satisfy you just to have a spec that says:<br><br>it &quot;should show form&quot; do<br>&nbsp; response.should have_tag(&quot;form[action=#{projects_path(@game)}][method=post]&quot;)<br>end<br><br>Its all up to you how granular you want to get.
<br><br><br><div class="gmail_quote">On Dec 9, 2007 3:58 PM, Chris Olsen &lt;<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When you guys test views, what are you testing? Do you just test that<br>all the form fields exist in a new.rhtml, that all form fields are<br>filled in an edit.rhtml, and that all the proper columns are are shown<br>in a 
index.rhtml page, or is there something more that should be tested?<br><br>Thanks.<br><font color="#888888">--<br>Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>_______________________________________________
<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users
</a><br></font></blockquote></div><br>