commit | 28744ab833688ffe95eb4634aae33ad6f57a9054 | [log] [tgz] |
---|---|---|
author | Kevin Clark <kclark@apache.org> | Thu Jun 26 18:45:29 2008 +0000 |
committer | Kevin Clark <kclark@apache.org> | Thu Jun 26 18:45:29 2008 +0000 |
tree | dd144badd1951aea49577cab5cbb79023d66b19f | |
parent | f2e4d107af58ad806556cc289befa3b2cf694d3c [diff] [blame] |
rb: Ensure the specs that expect deprecation warnings actually get them [THRIFT-56] Author: Kevin Ballard <kevin@rapleaf.com> git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@671985 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/deprecation_spec.rb b/lib/rb/spec/deprecation_spec.rb index 4ca4ee3..77786d8 100644 --- a/lib/rb/spec/deprecation_spec.rb +++ b/lib/rb/spec/deprecation_spec.rb
@@ -14,6 +14,10 @@ Thrift.const_set :DEPRECATION, false end + before(:each) do + Thrift::DeprecationProxy.reset_deprecation_warnings + end + def ensure_const_removed(name, &block) begin block.call