Ignore ace mode warning while testing

This commit is contained in:
Joshua Peek
2016-09-23 13:53:38 -07:00
parent 152b5ade5e
commit 39ea9be5f8
4 changed files with 14 additions and 11 deletions

View File

@@ -35,3 +35,11 @@ def sample_blob_memory(name)
content = File.read(filepath)
Linguist::Blob.new(name, content)
end
def silence_warnings
original_verbosity = $VERBOSE
$VERBOSE = nil
yield
ensure
$VERBOSE = original_verbosity
end