diff options
| author | Zack Hobson | 2013-12-26 21:39:52 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-12-26 21:39:52 -0800 | 
| commit | 26ea694048faaad292152b246f24d25eab0cf2ac (patch) | |
| tree | f58e96f6268a6709afdd1198e4c98bf5b10c8398 /test/ext | |
| parent | 087da79f8c4135acc19a71822295c328c0d57a5a (diff) | |
| download | hcl-26ea694048faaad292152b246f24d25eab0cf2ac.tar.bz2 | |
timesheet_resource: resource scopes
Diffstat (limited to 'test/ext')
| -rw-r--r-- | test/ext/capture_output.rb | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/test/ext/capture_output.rb b/test/ext/capture_output.rb index a469e21..bbf5424 100644 --- a/test/ext/capture_output.rb +++ b/test/ext/capture_output.rb @@ -1,11 +1,15 @@  module CaptureOutput    def before_setup      super -    $stderr = @stderr = StringIO.new -    $stdout = @stdout = StringIO.new +    @stderr = StringIO.new +    @stdout = StringIO.new +    return if ENV['VERBOSE'] +    $stderr = @stderr +    $stdout = @stdout    end    def after_teardown      super +    return if ENV['VERBOSE']      $stderr = STDERR      $stdout = STDOUT    end | 
