Class: RSpec::Core::Configuration

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

Instance Method Summary collapse

Instance Method Details

#with_suite_hooksObject



13
14
15
16
17
18
19
# File 'lib/test_queue/runner/rspec_ext.rb', line 13

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