Use the correct name in deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668928 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/deprecation_spec.rb b/lib/rb/spec/deprecation_spec.rb
index 0b994fd..9e27f7c 100644
--- a/lib/rb/spec/deprecation_spec.rb
+++ b/lib/rb/spec/deprecation_spec.rb
@@ -190,7 +190,7 @@
end
end
deprecate_class! :DeprecationSpecOldClass => klass
- stub_stderr(klass)
+ stub_stderr(:DeprecationSpecOldClass)
::DeprecationSpecOldClass.should eql(klass)
::DeprecationSpecOldClass.new.foo.should == "foo"
end
@@ -207,7 +207,7 @@
end
deprecate_class! :DeprecationSpecOldClass => klass
end
- stub_stderr(klass)
+ stub_stderr(:DeprecationSpecOldClass)
::DeprecationSpecOldClass.should eql(klass)
::DeprecationSpecOldClass.new.foo.should == "foo"
end
@@ -226,7 +226,7 @@
"subclass #{super}"
end
end
- stub_stderr(klass)
+ stub_stderr(:DeprecationSpecOldClass)
subklass.superclass.should eql(klass)
subklass.new.foo.should == "subclass foo"
end
@@ -250,7 +250,7 @@
end
end
deprecate_module! :DeprecationSpecOldModule => mod
- stub_stderr(mod)
+ stub_stderr(:DeprecationSpecOldModule)
::DeprecationSpecOldModule.should eql(mod)
::DeprecationSpecOldModule.foo.should == "foo"
end
@@ -267,7 +267,7 @@
end
deprecate_module! :DeprecationSpecOldModule => mod
end
- stub_stderr(mod)
+ stub_stderr(:DeprecationSpecOldModule)
::DeprecationSpecOldModule.should eql(mod)
::DeprecationSpecOldModule.foo.should == "foo"
end
@@ -282,7 +282,7 @@
end
end
deprecate_module! :DeprecationSpecOldModule => mod
- stub_stderr(mod)
+ stub_stderr(:DeprecationSpecOldModule)
::DeprecationSpecOldModule.should eql(mod)
::DeprecationSpecOldModule.foo.should == "foo"
end
@@ -301,7 +301,7 @@
include ::DeprecationSpecOldModule
end
end
- stub_stderr(mod)
+ stub_stderr(:DeprecationSpecOldModule)
mod2.foo.should == "foo"
end
end
@@ -317,7 +317,7 @@
klass = Class.new do
include ::DeprecationSpecOldModule
end
- stub_stderr(mod)
+ stub_stderr(:DeprecationSpecOldModule)
klass.new.foo.should == "foo"
end
end