Skip to content

Commit

Permalink
Capture $VERBOSE early for ruby 1.8 and syck
Browse files Browse the repository at this point in the history
I'm not sure how, but syck also disables warnings in a similar way and
this interfered with RubyGems enabling syck for tests.  This would cause
the contains_requirable_file? tests to fail on ruby 1.8 when ran after
with_syck.
  • Loading branch information
drbrain committed Feb 5, 2014
1 parent 89454c0 commit 2492fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_specification.rb
Expand Up @@ -2948,9 +2948,9 @@ def util_setup_validate

def with_syck
begin
verbose, $VERBOSE = $VERBOSE, nil
require "yaml"
old_engine = YAML::ENGINE.yamler
verbose, $VERBOSE = $VERBOSE, nil
YAML::ENGINE.yamler = 'syck'
load 'rubygems/syck_hack.rb'
rescue NameError
Expand Down

0 comments on commit 2492fdb

Please sign in to comment.