test/test_helper.rb in ruby-prof-0.16.2 vs test/test_helper.rb in ruby-prof-0.17.0
- old
+ new
@@ -23,9 +23,20 @@
$LOAD_PATH << lib
$LOAD_PATH << ext
require 'ruby-prof'
+
+# stub deprecation warnings
+module RubyProf
+ module SuppressDeprecationWarnings
+ def deprecation_warning(*args)
+ super if ENV['SHOW_RUBY_PROF_DEPRECATION_WARNINGS'] == '1'
+ end
+ end
+ extend SuppressDeprecationWarnings
+end
+
require 'minitest/autorun'
class TestCase < Minitest::Test
# I know this sucks, but ...
def assert_nothing_raised(*)