Class: Scenarios::Base
- Inherits:
-
Object
- Object
- Scenarios::Base
- Defined in:
- lib/scenarios/base.rb
Overview
The base class is the one you'll subclass in order to create a "scenario group"
Class Method Summary collapse
-
.scenario(name, &block) ⇒ Scenairos::Scenario
Create a new instance of
Scenarioand register it.
Class Method Details
.scenario(name, &block) ⇒ Scenairos::Scenario
Create a new instance of Scenario and register it.
18 19 20 21 22 |
# File 'lib/scenarios/base.rb', line 18 def scenario(name, &block) obj = Scenario.new(name, &block) Scenarios.register(obj) obj end |