Module: RSpec::Core::Hooks::BeforeHookExtension

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

Instance Attribute Summary

Attributes included from HookExtension

#options

Instance Method Summary collapse

Methods included from HookExtension

#options_apply?, #with

Instance Method Details

#display_nameObject



26
27
28
# File 'lib/rspec/core/hooks.rb', line 26

def display_name
  "before hook"
end

#run(example) ⇒ Object



22
23
24
# File 'lib/rspec/core/hooks.rb', line 22

def run(example)
  example.instance_eval(&self)
end