small medium large xlarge

31 Jul 2013, 07:35
Alex Emelyanov (2 posts)


I am making sample depot application by hot latest version of AWD book. I tried to run ‘rake test’ after iteration F1 and I have a bunch of errors like this

1) Error: CartsControllerTest#test_should_get_index: ActionView::Template::Error: 'nil' is not an ActiveModel-compatible object. It must implement :to_partial_path. app/views/layouts/application.html.erb:17:in _app_views_layouts_application_html_erb__1588140937319160302_32860880' test/controllers/carts_controller_test.rb:9:in block in <class:CartsControllerTest>'

I also tried to run test in AWD sample source from here depot_m has the same errors. I goggled this error but I can’t understand what does it mean and how I can fix it.

Thank you

31 Jul 2013, 15:21
Alex Emelyanov (2 posts)

Ooou this issue is fixed after F5 iteration. I’am sorry but I suppose this thread will be possible helpfull for new people.

  You must be logged in to comment