Class: Spinach::Hooks
Overview
Spinach’s hooks is a subscription mechanism to allow developers to define certain callbacks given several Spinach signals, like running a feature, executing a particular step and such.
Instance Method Summary collapse
-
#on_tag(tag) ⇒ Object
Runs before running a scenario with a particular tag.
Methods included from Hookable
Instance Method Details
#on_tag(tag) ⇒ Object
Runs before running a scenario with a particular tag
149 150 151 152 153 154 155 |
# File 'lib/spinach/hooks.rb', line 149 def on_tag(tag) before_scenario do |scenario| = scenario. next unless .any? yield(scenario) if .include? tag.to_s end end |