Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e8c392c5f1
Fetching contributors…

Cannot retrieve contributors at this time

106 lines (92 sloc) 2.72 kb
if defined?(require_relative)
def require_rspec(path)
require_relative path
end
else
def require_rspec(path)
require "rspec/#{path}"
end
end
require_rspec 'core/filter_manager'
require_rspec 'core/dsl'
require_rspec 'core/extensions'
require_rspec 'core/load_path'
require_rspec 'core/deprecation'
require_rspec 'core/backward_compatibility'
require_rspec 'core/reporter'
require_rspec 'core/metadata_hash_builder'
require_rspec 'core/hooks'
require_rspec 'core/subject'
require_rspec 'core/let'
require_rspec 'core/metadata'
require_rspec 'core/pending'
require_rspec 'core/world'
require_rspec 'core/configuration'
require_rspec 'core/project_initializer'
require_rspec 'core/option_parser'
require_rspec 'core/drb_options'
require_rspec 'core/configuration_options'
require_rspec 'core/command_line'
require_rspec 'core/drb_command_line'
require_rspec 'core/runner'
require_rspec 'core/example'
require_rspec 'core/shared_example_group'
require_rspec 'core/example_group'
require_rspec 'core/version'
require_rspec 'core/errors'
module RSpec
autoload :Matchers, 'rspec/matchers'
autoload :SharedContext, 'rspec/core/shared_context'
# @api private
# Used internally to determine what to do when a SIGINT is received
def self.wants_to_quit
world.wants_to_quit
end
# @api private
# Used internally to determine what to do when a SIGINT is received
def self.wants_to_quit=(maybe)
world.wants_to_quit=(maybe)
end
# @api private
# Internal container for global non-configuration data
def self.world
@world ||= RSpec::Core::World.new
end
# @api private
# Used internally to ensure examples get reloaded between multiple runs in
# the same process.
def self.reset
world.reset
configuration.reset
end
# Returns the global [Configuration](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).
#
# @example
# RSpec.configuration.drb_port = 1234
# @see RSpec.configure
# @see Core::Configuration
def self.configuration
@configuration ||= RSpec::Core::Configuration.new
end
# @yield [Configuration] global configuration
#
# @example
# RSpec.configure do |config|
# config.add_formatter 'documentation'
# end
# @see Core::Configuration
def self.configure
yield configuration if block_given?
end
# @api private
# Used internally to clear remaining groups when fail_fast is set
def self.clear_remaining_example_groups
world.example_groups.clear
end
module Core
end
end
require_rspec 'core/backward_compatibility'
require_rspec 'monkey'
Jump to Line
Something went wrong with that request. Please try again.