Sha256: 742c2c9e1e487f51b344b26123dfcc149fd4ffa0df9d278bfb348ad14d8bfe02

Contents?: true

Size: 237 Bytes

Versions: 6

Compression:

Stored size: 237 Bytes

Contents

#! /usr/bin/env ruby -S rspec
# Support code for running stuff with warnings disabled.
module Kernel
  def with_verbose_disabled
    verbose, $VERBOSE = $VERBOSE, nil
    result = yield
    $VERBOSE = verbose
    return result
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-retrospec-0.12.1 spec/fixtures/modules/stdlib/spec/lib/puppet_spec/verbose.rb
puppet-retrospec-0.12.0 spec/fixtures/modules/stdlib/spec/lib/puppet_spec/verbose.rb
puppet-retrospec-0.11.0 spec/fixtures/modules/stdlib/spec/lib/puppet_spec/verbose.rb
puppet-retrospec-0.10.0 spec/fixtures/modules/stdlib/spec/lib/puppet_spec/verbose.rb
puppet-retrospec-0.9.1 spec/fixtures/modules/stdlib/spec/lib/puppet_spec/verbose.rb
puppet-retrospec-0.9.0 spec/fixtures/modules/stdlib/spec/lib/puppet_spec/verbose.rb