Class: RSpec::Core::Configuration
- Inherits:
-
Object
- Object
- RSpec::Core::Configuration
- Defined in:
- lib/rspec/conductor/ext/rspec.rb
Overview
RSpec doesn't provide us with a good way to handle before/after suite hooks, doing what we can here
Instance Method Summary collapse
Instance Method Details
#__run_after_suite_hooks ⇒ Object
11 12 13 14 |
# File 'lib/rspec/conductor/ext/rspec.rb', line 11 def __run_after_suite_hooks RSpec.current_scope = :after_suite_hook if RSpec.respond_to?(:current_scope=) run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks) if respond_to?(:run_suite_hooks, true) end |
#__run_before_suite_hooks ⇒ Object
6 7 8 9 |
# File 'lib/rspec/conductor/ext/rspec.rb', line 6 def __run_before_suite_hooks RSpec.current_scope = :before_suite_hook if RSpec.respond_to?(:current_scope=) run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks) if respond_to?(:run_suite_hooks, true) end |