Hi y&#39;all<br><br>The problem is probably because I&#39;m a newb.&nbsp; I have a home controller in the admin namespace.&nbsp; <br><br>My controller spec is working as expected, and the following example is passing:<br><br>&nbsp; it &quot;should show the home page if logged in&quot; do<br>
&nbsp;&nbsp;&nbsp; controller.send(&quot;current_user=&quot;, User.new)<br>&nbsp;&nbsp;&nbsp; get :index<br>&nbsp;&nbsp;&nbsp; response.should render_template(&#39;admin/home/index&#39;)<br>&nbsp; end<br><br><br>But my story is failing on the &quot;then&quot; step:<br><br>
&nbsp;When &quot;I view the home page&quot; do <br>&nbsp;&nbsp;&nbsp; get admin_url<br>&nbsp; end<br><br>&nbsp; Then &quot;I see the home page&quot; do<br>&nbsp;&nbsp;&nbsp; response.should_not be_redirect&nbsp;&nbsp; # this passes<br>&nbsp;&nbsp;&nbsp; response.code.should == &quot;200&quot;&nbsp;&nbsp;&nbsp; # this passes<br>
&nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; response.should have_text(/&quot;Client Administration.&quot;/)&nbsp; #this fails, as response.body is nil<br>&nbsp;&nbsp;&nbsp; response.should render_template(&quot;admin/home/index&quot;)&nbsp; #this fails, with actual being nil.<br>
&nbsp; end<br><br>It&#39;s as though the template isn&#39;t actually being rendered for some reason.&nbsp; Any clues as to why this might be?&nbsp; My login story uses render_template in a similar way and it works successfully..<br><br>
Cheers,<br><br>Tim.<br>&nbsp;<br>