Skip to content

Implement RSpec.current_scope (in 4.0, to switch `rspec-rails` to it painlessly)

gitlab-qa-bot requested to merge rspec-current_scope into 4-0-dev

Created by: pirj

This is a reproduction of #2895 on 4-0-dev branch.

The plan:

  1. Add the method to rspec-core 4.0.0.pre (this PR)
  2. Update rspec-rails's main branch to use RSpec.current_scope (main depends on 4.0.0.pre of rspec-*), https://github.com/rspec/rspec-rails/pull/2511
  3. Merge #2895 (deprecates currently_executing_a_context_hook? and introduces RSpec.current_scope) to rspec-core 3.10-maintenance (will become part of 3.11/3.99)
  4. Send a PR to remove currently_executing_a_context_hook? from 4-0-dev

Merge request reports