I’m in Ch. 11, Task F, and I’m getting this error:
test_should_create_line_item FAIL Expected response to be a redirect to http://test.host/carts/980190963 but was a redirect to http://test.host/ Assertion at /home/gordon/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0/lib/action_dispatch/testing/assertions/response.rb:67:in `assert_redirected_to’
Rails 3.1, Ruby 1.9.2 (2011-02-18 revision 30909).
The download code for depot_l has exact same error. (That code also requires two adjustments to test without error. First, addition of « gem ‘minitest’ », in the group :test. Second, in app/views/layouts/application.html.erb, bracketing the <div> holding @cart with an <%= if . . . <%= end > block.)