Hi,

I'm working thru the tutorial app 'shovell' as found in Simply Rails 2. I'm getting some error on testing at the end of chapter 9. the app runs fine in browser but give...

32 tests, 66 assertions, 0 failures, 6 errors
-instead of : 32 tests, 72 assertions, 0 failures, 0 errors

Below is the errror, its the same on all 6:

ActionView::TemplateError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.login
On line #4 of stories/_story.html.erb

1: <% div_for(story) do %>
2: <h3><%= link_to story.name, story %></h3>
3: <p>
4: Submitted by: <%= story.user.login %> |
5: Score: <%= story.votes_count %>
6: </p>
7: <% end %>
app/views/stories/_story.html.erb

If anyone can point me in the right direction I'd be stoked. thanks in advance for sharing!