Method: RSpec.current_example=

Defined in:
lib/rspec/core.rb

.current_example=(example) ⇒ 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 example being executed.

[View source]

128
129
130
# File 'lib/rspec/core.rb', line 128

def self.current_example=(example)
  RSpec::Support.thread_local_data[:current_example] = example
end