Module: RSpec
- Defined in:
- lib/rspec/parallel.rb,
lib/rspec/parallel/runner.rb,
lib/rspec/parallel/version.rb,
lib/rspec/parallel/command_line.rb,
lib/rspec/parallel/configuration.rb,
lib/rspec/parallel/option_parser.rb,
lib/rspec/parallel/configuration_options.rb,
lib/rspec/parallel/example_thread_runner.rb,
lib/rspec/parallel/example_group_thread_runner.rb
Defined Under Namespace
Modules: Parallel
Class Method Summary collapse
-
.configuration ⇒ Object
Returns the global [Configuration](RSpec/Core/Configuration) object.
Class Method Details
.configuration ⇒ Object
Returns the global [Configuration](RSpec/Core/Configuration) object. While you can use this method to access the configuration, the more common convention is to use [RSpec.configure](RSpec#configure-class_method).
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rspec/parallel.rb', line 30 def self.configuration if block_given? RSpec.warn_deprecation <<-WARNING ***************************************************************** DEPRECATION WARNING * RSpec.configuration with a block is deprecated and has no effect. * please use RSpec.configure with a block instead. Called from #{caller(0)[1]} ***************************************************************** WARNING end @configuration ||= RSpec::Parallel::Configuration.new end |