I can't get my test to run past assert_template "index". Here's what that part of the test looks like. Note that I've done the "play time" exercise for making the checkout us only one action, which is why I do post_via_redirect "/store/checkout".
But it isn't very helpful. I can't figure out why the test doesn't make it to the store index. Running the application manually in the browser works. Anyone has any tips on how to get some more information out? Some other asserts I can add?
I'm having the same problem as PEZ here. I'm wondering if it has something to do with how the "order" parameters are getting passed to the checkout method. If the checkout method isn't correctly identifying that the order is populated then it will redirect back to checkout.
To my surprise I still can't get the functional tests to get past the validation. Works when exercising the application. But not in testing. The only way I can get the tests to pass is by either removing the pay_type validation or hard coding the types into a variable. Any ideas why this is so?