The following error is thrown when I run my functional test:
[17/34] OrderNotifierTest#test_shipped = 0.01 s 2) Error: test_shipped(OrderNotifierTest): ActionView::Template::Error: undefined method `title' for nil:NilClass /home/richard/projects/pickaxe/mini-projects/depot-app/app/views/line_items/_line_item.html.erb:9:in `_app_views_line_items__line_item_html_erb___1375608412970670484_69828130048560'
The error is thrown via this line in _line_item.html.erb
<td><%= line_item.product.title %></td>
I think this is a problem with my fixture setup, but I don’t know how I would go about adding line_items to the order.