Thanks Pat and David.&nbsp; I&#39;m implementing paging (via will_paginate) and thought I should start with a story.&nbsp; I think I grok what you&#39;re saying Pat - the stories should only be looking at &quot;externally&quot; visible stuff - i.e. what a real user can see or do..&nbsp;&nbsp; That&#39;s why you consider controller.send(&quot;current_user=&quot;,..) a bit hacky right?<br>
<br>So to make sure I only have 30 records showing when there&#39;s 40 in the db I should definitely be using have_tag..<br><br>Tim.<br><br><div><span class="gmail_quote">On 10/04/2008, <b class="gmail_sendername">Pat Maddox</b> &lt;<a href="mailto:pergesu@gmail.com">pergesu@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Apr 9, 2008 at 7:37 PM, Tim Haines &lt;<a href="mailto:tmhaines@gmail.com">tmhaines@gmail.com</a>&gt; wrote:<br> &gt; Hi there,<br> &gt;<br> &gt; Just want to confirm I have this right.&nbsp;&nbsp;Writing a story,<br> &gt; assigns[:games].length.should == 30 fails for me complaining assigns[:games]<br>
 &gt; is nil.&nbsp;&nbsp;It seems assigns isn&#39;t set for story steps?&nbsp;&nbsp; I&#39;ve changed this to<br> &gt; response.should have_tag(&quot;.game&quot;, 30).&nbsp;&nbsp;Is this correct?<br> <br> <br>I would say that you shouldn&#39;t be trying to test that sort of thing in<br>
 a story.&nbsp;&nbsp;The fact that Rails assigns stuff as instance variables in<br> views is a framework implementation detail, not externally visible<br> behavior.<br> <br> Pat<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">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
 </blockquote></div><br>