diff options
| author | Jack Nagel | 2012-09-27 17:45:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-09-27 17:50:13 -0500 |
| commit | 4b79622dd26d0a607d95eb3be562ab2d8bcf55fb (patch) | |
| tree | 85bc998142932421d59d0493968e7fec7eaeed1a /Library | |
| parent | 71dbaaae1b028e03d0ade62af22ac29bf217c421 (diff) | |
| download | homebrew-4b79622dd26d0a607d95eb3be562ab2d8bcf55fb.tar.bz2 | |
test_bucket: don't try to clean a non-existent keg
It is a no-op under Ruby 1.8 but Pathname#find raises ENOENT if the
directory doesn't exist under 1.9. But we really shouldn't try to clean
a non-existent keg anyway, and FormulaInstaller will have bailed out
long before the clean step if the keg doesn't exist, so lets just not
even test this condition; the cleaner has its own tests anyway.
Alternatively we can adjust the cleaner to handle this case, but I don't
see much value in that.
n.b. with this, the tests now pass under 1.9.3 (for me), which is nice
because I often run them on that version inadvertently.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_bucket.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_bucket.rb b/Library/Homebrew/test/test_bucket.rb index 2963a5532..1279d2ac2 100644 --- a/Library/Homebrew/test/test_bucket.rb +++ b/Library/Homebrew/test/test_bucket.rb @@ -84,7 +84,6 @@ class BeerTasting < Test::Unit::TestCase assert_nothing_raised do f=TestBallWithRealPath.new Homebrew.info_formula f - Cleaner.new f Homebrew.prune #TODO test diy function too end |
