Class: RSpec::Core::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/test_queue/runner/rspec3.rb

Instance Method Summary collapse

Instance Method Details

#with_suite_hooksObject



5
6
7
8
9
10
11
12
13
# File 'lib/test_queue/runner/rspec3.rb', line 5

def with_suite_hooks
  begin
    hook_context = SuiteHookContext.new
    hooks.run(:before, :suite, hook_context)
    yield
  ensure
    hooks.run(:after, :suite, hook_context)
  end
end