Method: RSpec.current_scope=

Defined in:
lib/rspec/core.rb

.current_scope=(scope) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set the current scope rspec is executing in



134
135
136
# File 'lib/rspec/core.rb', line 134

def self.current_scope=(scope)
  RSpec::Support.thread_local_data[:current_scope] = scope
end