Class: Smartest::AroundSuiteContext
- Inherits:
-
Object
- Object
- Smartest::AroundSuiteContext
- Includes:
- ConstantStubHelpers
- Defined in:
- lib/smartest/hook_contexts.rb
Instance Method Summary collapse
- #call(hook, suite_run) ⇒ Object
-
#initialize(suite) ⇒ AroundSuiteContext
constructor
A new instance of AroundSuiteContext.
Constructor Details
#initialize(suite) ⇒ AroundSuiteContext
Returns a new instance of AroundSuiteContext.
7 8 9 |
# File 'lib/smartest/hook_contexts.rb', line 7 def initialize(suite) @suite = suite end |
Instance Method Details
#call(hook, suite_run) ⇒ Object
11 12 13 14 15 |
# File 'lib/smartest/hook_contexts.rb', line 11 def call(hook, suite_run) @suite.around_suite_hook do instance_exec(suite_run, &hook) end end |