I have a namespace called saltmines<br><br>The following will fail the spec<br><br>@player = mock_model(Saltmines::Player)<br><br>1)<br>ActionView::TemplateError in &#39;/saltmines/players/index.rhtml should render list of saltmines/players&#39;
<br>You have a nil object when you didn&#39;t expect it!<br>You might have expected an instance of Array.<br>The error occurred while evaluating nil.each<br>On line #9 of app/views/saltmines/players/index.rhtml<br><br>&nbsp;&nbsp;&nbsp; 6:&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;Player&lt;/th&gt;
<br>&nbsp;&nbsp;&nbsp; 7:&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; 8:&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 9: &lt;% for player in @players %&gt;<br><br><br>My application works but these specs fail. How do I get them to pass?<br><br>