Open paulschreiber opened 12 years ago
Those methods exist already. I'll document them when I prepare the 0.1.3 release of hat-trick.
I see steps_before_current
. Are you suggesting step_is_after?(:step)
== steps_before_current.include?(:step)
?
Is there a good method for getting the current step? Should before :each do
take a block argument, i.e. before :each do |step|
?
It would be nice to have methods to detect step sequence. Something like
step_is_after?(:step)
andstep_is_before?(:step)
.This way, I could try up all the step checking blocks
i.e.