In Files

Class/Module Index [+]

Quicksearch

Spec

Hack to stop active_support/dependencies from complaining about ‘spec/test/unit’ not defining Spec::Test::Unit

Public Class Methods

deprecate(method, alternate_method=nil) click to toggle source
# File lib/spec/deprecation.rb, line 3
def deprecate(method, alternate_method=nil)
   message = *****************************************************************DEPRECATION WARNING: you are using deprecated behaviour that willbe removed from a future version of RSpec.#{caller(0)[2]}* #{method} is deprecated.
  if alternate_method
    message << * please use #{alternate_method} instead.
  end

  message << "*****************************************************************"
  warn(message)
end
warn(message) click to toggle source
# File lib/spec/deprecation.rb, line 24
def warn(message)
  Kernel.warn(message)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.