aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_patching.rb
diff options
context:
space:
mode:
authorJack Nagel2012-04-17 19:11:36 -0500
committerJack Nagel2012-04-18 15:16:00 -0500
commitaa885cf4e7757347bfe3e160f92fe13411d7d79f (patch)
treef5ee094af5efd8a1462f32a61cbca518b00ba041 /Library/Homebrew/test/test_patching.rb
parenta2e8b543f16745025001790777770b190b5d9a64 (diff)
downloadhomebrew-aa885cf4e7757347bfe3e160f92fe13411d7d79f.tar.bz2
tests: add utility method to quell output
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/test/test_patching.rb')
-rw-r--r--Library/Homebrew/test/test_patching.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb
index ea8d159a6..bd51c1a15 100644
--- a/Library/Homebrew/test/test_patching.rb
+++ b/Library/Homebrew/test/test_patching.rb
@@ -39,7 +39,7 @@ class PatchingTests < Test::Unit::TestCase
end
def test_single_patch
- nostdout do
+ shutup do
DefaultPatchBall.new('test_patch').brew do
s = read_file 'libexec/NOOP'
assert !s.include?("NOOP"), "File was unpatched."
@@ -49,7 +49,7 @@ class PatchingTests < Test::Unit::TestCase
end
def test_patch_list
- nostdout do
+ shutup do
ListPatchBall.new('test_patch_list').brew do
s = read_file 'libexec/NOOP'
assert !s.include?("NOOP"), "File was unpatched."
@@ -59,7 +59,7 @@ class PatchingTests < Test::Unit::TestCase
end
def test_p0_patch
- nostdout do
+ shutup do
P0PatchBall.new('test_p0_patch').brew do
s = read_file 'libexec/NOOP'
assert !s.include?("NOOP"), "File was unpatched."
@@ -69,7 +69,7 @@ class PatchingTests < Test::Unit::TestCase
end
def test_p1_patch
- nostdout do
+ shutup do
P1PatchBall.new('test_p1_patch').brew do
s = read_file 'libexec/NOOP'
assert !s.include?("NOOP"), "File was unpatched."