Module: Cucumber::StepMother
- Defined in:
- lib/bolt/runners/cucumber.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#clear_steps_and_scenarios! ⇒ Object
Clear the steps and scenarios to always start fresh.
-
#reload_definitions! ⇒ Object
Clear the step definitions and reload them.
Instance Method Details
#clear_steps_and_scenarios! ⇒ Object
Clear the steps and scenarios to always start fresh
186 187 188 189 |
# File 'lib/bolt/runners/cucumber.rb', line 186 def clear_steps_and_scenarios! steps.clear scenarios.clear end |
#reload_definitions! ⇒ Object
Clear the step definitions and reload them
177 178 179 180 181 182 183 |
# File 'lib/bolt/runners/cucumber.rb', line 177 def reload_definitions! step_definitions.clear Dir['features/step_definitions/*'].map do |f| $".delete(f) require "features/step_definitions/#{File.basename(f)}" end end |