Sha256: 64fef022d365ac47e6565fc94487fea8b86592c89a462b6e7899e8820a3e9d18
Contents?: true
Size: 489 Bytes
Versions: 16
Compression:
Stored size: 489 Bytes
Contents
module RSpecHelpers def relative_path(path) RSpec::Core::Metadata.relative_path(path) end def ignoring_warnings original = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = original result end def safely Thread.new do ignoring_warnings { $SAFE = 3 } yield end.join # $SAFE is not supported on Rubinius unless defined?(Rubinius) expect($SAFE).to eql 0 # $SAFE should not have changed in this thread. end end end
Version data entries
16 entries across 16 versions & 3 rubygems