Module | RSpec::Core::Hooks |
In: |
lib/rspec/core/hooks.rb
|
Runs all of the blocks stored with the hook in the context of the example. If no example is provided, just calls the hook directly.
Just like run_hook, except it removes the blocks as it evalutes them, ensuring that they will only be run once.