Method: Spec::Runner::Configuration#prepend_before
- Defined in:
- lib/spec/runner/configuration.rb
#prepend_before(scope = :each, options = {}, &proc) ⇒ Object
Prepends a global before
block to all example groups.
See append_before
for scoping semantics.
108 109 110 |
# File 'lib/spec/runner/configuration.rb', line 108 def prepend_before(scope = :each, ={}, &proc) add_callback(:prepend_before, scope, , &proc) end |