Method: RSpec::Core::Hooks#prepend_before

Defined in:
lib/rspec/core/hooks.rb

#prepend_before(*args, &block) ⇒ void

Adds block to the front of the list of before blocks in the same scope (:example, :context, or :suite).

See #before for scoping semantics.

[View source]

210
211
212
# File 'lib/rspec/core/hooks.rb', line 210

def prepend_before(*args, &block)
  hooks.register :prepend, :before, *args, &block
end