Method: RSpec::Core::World#initialize
- Defined in:
- lib/rspec/core/world.rb
permalink #initialize(configuration = RSpec.configuration) ⇒ World
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.
Returns a new instance of World.
26 27 28 29 30 31 32 33 34 |
# File 'lib/rspec/core/world.rb', line 26 def initialize(configuration=RSpec.configuration) @wants_to_quit = false @rspec_is_quitting = false @configuration = configuration configuration.world = self @example_groups = [] @example_group_counts_by_spec_file = Hash.new(0) prepare_example_filtering end |