I&#39;m trying to spec a view but haven&#39;t done much view specing.<br><br>This view render different partials depending on authentication of the user: annon, admin, player<br>So I I&#39;ll write if conditionals in the view with the partials 
<br><br><br>&nbsp; it &quot;should render signup propaganda for annon users trying to view games&quot; do<br>&nbsp;&nbsp;&nbsp; render &quot;/games/index.rhtml&quot;<br>&nbsp;&nbsp;&nbsp; @logged_in?.should eql(false)<br>&nbsp;&nbsp;&nbsp; response.should render_template(&#39;_signup_propaganda&#39;)
<br>&nbsp; end<br><br>Now for my partial I know it&#39;ll be wrapped all in a div with a class=&quot;signup_propaganda&quot;<br>Should I be testing for that instead? Can I write expectations for partials similar to above?<br><br>

When your specing views are you testing for the outputted results?<br><br>&nbsp; it &quot;should render signup propaganda for annon users trying to view games&quot; do<br>
&nbsp;&nbsp;&nbsp; render &quot;/games/index.rhtml&quot;<br>
&nbsp;&nbsp;&nbsp; @logged_in?.should eql(false)<br>
&nbsp;&nbsp;&nbsp; response.should have_tag(div, &quot;class=/&quot;signup_propaganda/&quot;&quot;)<br>
&nbsp; end<br><br>How should I be writing my spec?<br>