diff options
| author | Jack Nagel | 2012-04-17 19:11:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-18 15:16:00 -0500 |
| commit | af7bf47e3112a9d50a1cd915d29f36fc6d6463dd (patch) | |
| tree | 836250f0715d98fad8ff816ffdf96ca3d4e4aecc /Library/Homebrew/test/test_patching.rb | |
| parent | 472322af24e87e60bcdb341383bf8915d222079d (diff) | |
| download | brew-af7bf47e3112a9d50a1cd915d29f36fc6d6463dd.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.rb | 8 |
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." |
