Skip to content

Commit

Permalink
Avoid to warnings for deprecated interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 20, 2018
1 parent da29473 commit a8ed49b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/psych/test_exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ def initialize *args
def setup
super
@wups = Wups.new

@orig_verbose, $VERBOSE = $VERBOSE, nil
end

def teardown
$VERBOSE = @orig_verbose
end

def test_naming_exception
Expand Down
6 changes: 6 additions & 0 deletions test/psych/test_psych.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
require 'tempfile'

class TestPsych < Psych::TestCase

def setup
@orig_verbose, $VERBOSE = $VERBOSE, nil
end

def teardown
Psych.domain_types.clear
$VERBOSE = @orig_verbose
end

def test_line_width_invalid
Expand Down
8 changes: 8 additions & 0 deletions test/psych/test_safe_load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

module Psych
class TestSafeLoad < TestCase
def setup
@orig_verbose, $VERBOSE = $VERBOSE, nil
end

def teardown
$VERBOSE = @orig_verbose
end

class Foo; end

[1, 2.2, {}, [], "foo"].each do |obj|
Expand Down

0 comments on commit a8ed49b

Please sign in to comment.