You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to get this working, I've had to vendorize the gem and fix both of those lines and then it works fine. But I'm surprised no one else has encountered this issue... unless I've missed some settings in the controller?
Maybe try to convert your example into a test case and see if you can get it to fail the same way.
Also: I would take a PR that adds cron to run tests at regular intervals, like weekly/monthly, (instead of just on PR). Being able to trigger them manually as well would be nice.
I tried this out on a very simple controller like so:
I've found a couple of what seem like bugs that prevented this from working and redirected straight away to
/
.First on this line: https://github.com/zombocom/wicked/blob/main/lib/wicked/wizard.rb#L81
This guard clause is pointless:
Because you default to the first step already:
And the latter code prevents
@step
from being set causing it to think the Wizard is complete and redirect to/
.Secondly on this line: https://github.com/zombocom/wicked/blob/main/lib/wicked/wizard.rb#L64
You're comparing steps that have been converted to a string to one that is not:
It should be:
The text was updated successfully, but these errors were encountered: