module Rspec::Core
def self.configuration
def self.configuration @configuration ||= Rspec::Core::Configuration.new end
def self.configure
def self.configure yield configuration if block_given? end
def self.install_directory
def self.install_directory @install_directory ||= File.expand_path(File.dirname(__FILE__)) end
def self.world
def self.world @world ||= Rspec::Core::World.new end
def deprecate(method, alternate_method=nil)
def deprecate(method, alternate_method=nil) message = <<-NOTICE *********************************************************** ATION WARNING: you are using deprecated behaviour that will oved from a future version of RSpec. er(0)[2]} thod} is deprecated. if alternate_method message << <<-ADDITIONAL se use #{alternate_method} instead. ONAL end message << "*****************************************************************" warn(message) end
def warn(message)
def warn(message) Kernel.warn(message) end