Browse files

Add some docs for the new reset behaviour

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
  • Loading branch information...
1 parent d6d0d35 commit 4fe3704e2325fd8b9242fd248f119bdff0a16287 @samphippen committed Mar 30, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/rspec/core.rb
View
6 lib/rspec/core.rb
@@ -61,9 +61,11 @@ def self.world
@world ||= RSpec::Core::World.new
end
- # @private
- # Used internally to ensure examples get reloaded between multiple runs in
+ # Used to ensure examples get reloaded between multiple runs in
# the same process.
+ #
+ # Users must invoke this if they want to have the configuration reset when
+ # they use runner multiple times within the same process.
def self.reset
@world = nil
@configuration = nil

0 comments on commit 4fe3704

Please sign in to comment.