4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/rspec/core/backward_compatibility.rb', line 4
def const_missing(name)
case name
when :Rspec, :Spec
RSpec.warn_deprecation "*****************************************************************\nDEPRECATION WARNING: you are using a deprecated constant that will\nbe removed from a future version of RSpec.\n\n* \#{name} is deprecated.\n* RSpec is the new top-level module in RSpec-2\n\n\#{caller(0)[1]}\n*****************************************************************\n"
RSpec
else
super(name)
end
end
|