Sha256: 795f9b2eb12b1fef2d624d5ee40f7fb035f9a46f125c41d0b85b69cbb2ebca12

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

require 'rspec/core/load_path'
require 'rspec/core/deprecation'
require 'rspec/core/mocking/with_absolutely_nothing'
require 'rspec/core/around_proxy'
require 'rspec/core/world'
require 'rspec/core/configuration'
require 'rspec/core/command_line_options'
require 'rspec/core/runner'
require 'rspec/core/example'
require 'rspec/core/metadata'
require 'rspec/core/kernel_extensions'
require 'rspec/core/shared_example_group'
require 'rspec/core/example_group_subject'
require 'rspec/core/example_group'
require 'rspec/core/formatters'
require 'rspec/core/backward_compatibility'
require 'rspec/core/version'

module Rspec
  module Core

    def self.install_directory
      @install_directory ||= File.expand_path(File.dirname(__FILE__))
    end

    def self.configuration
      @configuration ||= Rspec::Core::Configuration.new
    end

    def self.configure
      Rspec.deprecate('Rspec::Core.configure', 'Rspec.configure', '2.0.0')
      yield configuration if block_given?
    end

    def self.world
      @world ||= Rspec::Core::World.new
    end

  end

  def self.configure
    yield Core.configuration if block_given?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-core-2.0.0.a10 lib/rspec/core.rb
rspec-core-2.0.0.a9 lib/rspec/core.rb
rspec-core-2.0.0.a8 lib/rspec/core.rb
rspec-core-2.0.0.a7 lib/rspec/core.rb
rspec-core-2.0.0.a6 lib/rspec/core.rb