Class: RSpec::Core::Hooks::BeforeHook
- Inherits:
-
Hook
- Object
- Hook
- RSpec::Core::Hooks::BeforeHook
show all
- Defined in:
- lib/rspec/core/hooks.rb
Instance Attribute Summary
Attributes inherited from Hook
#block, #options
Instance Method Summary
collapse
Methods inherited from Hook
#initialize, #options_apply?
Instance Method Details
#display_name ⇒ Object
24
25
26
|
# File 'lib/rspec/core/hooks.rb', line 24
def display_name
"before hook"
end
|
#run(example) ⇒ Object
20
21
22
|
# File 'lib/rspec/core/hooks.rb', line 20
def run(example)
example.instance_eval_with_args(example, &block)
end
|