2014-05-07 11:49:25 +02:00
|
|
|
#! /usr/bin/env ruby -S rspec
|
2014-03-05 21:43:58 +01:00
|
|
|
# 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
|