schneems/wicked — pull request #15 by fschwahn (2012-05-23 16:10:34+00:00)
Title: fix for issue #14

This PR adds failing tests and a fix for problems when `render_wizard` is called with a resource and skip_to is set. The issues are:
- if the resource is saved successfully, @skip_to is overwritten and the next step is rendered
- if saving the resource fails, @skip_to is honored, and the current step is not redisplayed.

These are fixed, so that:
- if the resource is saved successfully, @skip_to is only set if it was nil before
- if saving the resource fails, @skip_to is set to nil so that the current step is redisplayed

Best regards,
Fabian