Wrap
wrap
is the type of step, that behaves like step
, but can wrap several steps with block to make some before/after actions or to rescue an error for several steps.
Signature
wrap(wrap_name, **options) do
# steps to wrap
end
Behavior
- all steps inside
wrap
step will be perceived as inner action. So depending on inner action result thewrap
step will be moved to success or failure track. - All step options for
step
can be applied forwrap