aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_bottle_hooks.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-11 12:21:03 -0500
committerJack Nagel2014-06-18 20:34:09 -0500
commit07535c52e7a314a880933e489ea80fd3ccc43af2 (patch)
tree50c2514863f51f40eaf5c0424fc4592ec195e527 /Library/Homebrew/test/test_bottle_hooks.rb
parent16884ea08e115723ca595bf29389cddef54f9c63 (diff)
downloadhomebrew-07535c52e7a314a880933e489ea80fd3ccc43af2.tar.bz2
Use assert_predicate
Diffstat (limited to 'Library/Homebrew/test/test_bottle_hooks.rb')
-rw-r--r--Library/Homebrew/test/test_bottle_hooks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_bottle_hooks.rb b/Library/Homebrew/test/test_bottle_hooks.rb
index cf160bb14..8c66bce53 100644
--- a/Library/Homebrew/test/test_bottle_hooks.rb
+++ b/Library/Homebrew/test/test_bottle_hooks.rb
@@ -17,14 +17,14 @@ class BottleHookTests < Homebrew::TestCase
Homebrew::Hooks::Bottles.setup_formula_has_bottle do |f|
f.some_random_method
end
- assert @fi.pour_bottle?
+ assert_predicate @fi, :pour_bottle?
end
def test_has_no_bottle
Homebrew::Hooks::Bottles.setup_formula_has_bottle do |f|
!f.some_random_method
end
- assert !@fi.pour_bottle?
+ refute_predicate @fi, :pour_bottle?
end
def test_pour_formula_bottle