Sorry for the double post but on reddit nobody seems to have the
im following the agile web developement book but then with my own
Now am at chapter 9 where a shopping card is added. But as soon as I try
test the card I see this error
RuntimeError: @controller is nil: make sure you set it in your test’s
my code can be found here : https://github.com/roelof1967/commerce-try
Who can help me figure out why this test is failing. According to the
it must all be successfull.
Normally that problem occurs when you have a weird nesting or the naming
the controller compared to the test name is not correct as you can see
this 2 posts:
I only use rspec so I am not sure that this:
has the correct syntax. does the test for delete at the end fail too?
On Sunday, 7 December 2014 11:50:57 UTC-6, Roelof W. wrote:
The file in app/controllers/concerns is not named correctly - it
CurrentCart module, but is named
current_card.rb. Fixing that makes
the tests pass.
Op maandag 8 december 2014 12:42:14 UTC+1 schreef Matt J.:
im following the agile web developement book but then with my own layout.
I found it . The problem was in the name. When I change it to
current_cart.rb it worked fine.