I’m working my way through the Zero to Hero course on CFCast but have got stuck with a unit test that fails in Episode 30 (Hands-On Step 9).
I’m seeing an error in the integration that says:
" Invalid HTTP Method: 'GET’The requested URL: registration/ cannot be executed using the incoming HTTP request method ‘GET’"
I can’t see anything that specifies the Method in either the test or the code. Can anyone point me in the right direction, please?
Looks like it might be related to the tests in step 8, you have a route /registration/new which can handle a get, and you have a post to /registration.
In step 9, you should have added the resources( "registration" ) which will set the rules for those routes.
So check your tests to make sure they have the POST to registration.
That might be it.
Might not be, might need some code to debug any more.