Method: RSpec.current_example
- Defined in:
- lib/rspec/core.rb
.current_example ⇒ void
The example being executed.
The primary audience for this method is library authors who need access to the example currently being executed and also want to support all versions of RSpec 2 and 3.
122 123 124 |
# File 'lib/rspec/core.rb', line 122 def self.current_example RSpec::Support.thread_local_data[:current_example] end |