Module: Scenario::RSpecExtensions::ExampleGroupExtensions

Defined in:
lib/scenario/rspec.rb

Overview

ExampleGroup methods

Instance Method Summary collapse

Instance Method Details

#scenario(name, &block) ⇒ Object

Tell Scenario which scenario you want to use



21
22
23
24
25
# File 'lib/scenario/rspec.rb', line 21

def scenario( name, &block )
  modul = Scenario::Scenarios.for( name )
  modul.module_exec( &block ) if block_given?
  self.send( :include, modul )
end