zombocom / wicked

Use wicked to turn your controller into a wizard

Home Page:http://schneems.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to test the posting of incorrect data to update?

bo-oz opened this issue · comments

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.

commented

My bad, it does render the same template with status 200.

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