lib/laminar/flow/specification.rb in laminar-0.4.0 vs lib/laminar/flow/specification.rb in laminar-0.5.0

- old
+ new

@@ -21,9 +21,17 @@ # conditions get met. @prev_step&.branch(step.name) @prev_step = step end + def context_must_have(*params) + flow_params.concat(params.flatten) + end + + def flow_params + @flow_params ||= [] + end + def before_each(*args, &block) before_each_callbacks.concat(args) before_each_callbacks << block if block end