aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-06-23 21:48:15 -0500
committerJack Nagel2014-06-23 22:34:41 -0500
commitf222ca04fd31b0cd05e25b0c92b27049802147bb (patch)
tree62a72c1ffcddf4019089ac17410350f5bfc138fc /Library/Homebrew/test
parent35b9a0070693c4491f4bd1c28fee69514168e02c (diff)
downloadbrew-f222ca04fd31b0cd05e25b0c92b27049802147bb.tar.bz2
Remove pin directory when empty
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_formula_pin.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_formula_pin.rb b/Library/Homebrew/test/test_formula_pin.rb
index 9478e54ea..6dbf3e173 100644
--- a/Library/Homebrew/test/test_formula_pin.rb
+++ b/Library/Homebrew/test/test_formula_pin.rb
@@ -27,19 +27,17 @@ class FormulaPinTests < Homebrew::TestCase
assert_predicate @pin, :pinnable?
end
- def test_pin
+ def test_unpin
(@f.rack+'0.1').mkpath
@pin.pin
+
assert_predicate @pin, :pinned?
assert_equal 1, FormulaPin::PINDIR.children.length
- end
- def test_unpin
- (@f.rack+'0.1').mkpath
- @pin.pin
@pin.unpin
+
refute_predicate @pin, :pinned?
- assert_equal 0, FormulaPin::PINDIR.children.length
+ refute_predicate FormulaPin::PINDIR, :directory?
end
def teardown