Skip to content

Add `currently_executing_a_context_hook?` to ExampleGroup

gitlab-qa-bot requested to merge samphippen/detect-context-hooks into master

Created by: penelopezone

This is useful because at the moment the only way to determine if an example is currently executing a context hook is to look at it's inspect string. Here, we add a simple boolean flag which is triggered in before and after context hook execution.

This is needed by https://github.com/rspec/rspec-rails/pull/1501.

Merge request reports