Module: Scenario::RSpecExtensions::ExampleGroupExtensions
- Defined in:
- lib/scenario/rspec.rb
Overview
ExampleGroup methods
Instance Method Summary collapse
-
#scenario(name, &block) ⇒ Object
Load a given scenario.
Instance Method Details
#scenario(name, &block) ⇒ Object
Load a given scenario
23 24 25 26 27 |
# File 'lib/scenario/rspec.rb', line 23 def scenario( name, &block ) @_scenario_context = name.to_sym scenario = Scenario::Scenarios.for( name ) self.module_eval( &scenario ) end |