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 '/saltmines/players/index.rhtml should render list of saltmines/players'
<br>You have a nil object when you didn'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> 6: <th>Player</th>
<br> 7: </tr><br> 8: <br> 9: <% for player in @players %><br><br><br>My application works but these specs fail. How do I get them to pass?<br><br>