How to test the posting of incorrect data to update?
bo-oz opened this issue · comments
bo-oz commented
No matter whether the data you patch to update is correct, it will always create a 302 redirect back to the show method. Is there another way to set-up proper controller testing for the Wicked controller, or should these be covered in integration/feature testing?
ps. Created a very tiny PR for the readme, to make correct use of the get / patch requests in RSpec.
bo-oz commented
My bad, it does render the same template with status 200.
Taylor Cooney commented
Hey @bo-oz ... how are you testing in Rspec? I just posted an issue that contradicts how it should be tested and at a loss