Method: RSpec.clear_examples
- Defined in:
- lib/rspec/core.rb
permalink .clear_examples ⇒ void
Used to ensure examples get reloaded between multiple runs in the same process and ensures user configuration is persisted.
Users must invoke this if they want to clear all examples but preserve current configuration when they use the runner multiple times within the same process.
70 71 72 73 74 75 |
# File 'lib/rspec/core.rb', line 70 def self.clear_examples world.reset configuration.reset_reporter configuration.start_time = ::RSpec::Core::Time.now configuration.reset_filters end |