I wanted to ask if someone could explain something to me.
I have a Category model with only name:string created using
resource_controller. I have no problem creating new, editing and/or
deleting. When I create new or edit/update, I am redirected to the new/
edited record. So, everything is as usual.
I have 2 tests for: test_should_create_category and
test_should_update_category that include:
But when running the test I get:
Expected response to be a <:redirect>, but was <200>
The thing I don’t understand is that I do get redirected – so why is
the test failing?