aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_stdlib.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-11 12:21:03 -0500
committerJack Nagel2014-06-18 20:34:09 -0500
commit58a75b0f71924a73085c61cd3dc48abe04aa50c1 (patch)
treeeaf6e25a42753192a459831dbb2acf18c51e6c50 /Library/Homebrew/test/test_stdlib.rb
parent06305e621199409f954b34166194e18e610d4e89 (diff)
downloadbrew-58a75b0f71924a73085c61cd3dc48abe04aa50c1.tar.bz2
Use assert_predicate
Diffstat (limited to 'Library/Homebrew/test/test_stdlib.rb')
-rw-r--r--Library/Homebrew/test/test_stdlib.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/test/test_stdlib.rb b/Library/Homebrew/test/test_stdlib.rb
index 0f3fce88d..2e0e93352 100644
--- a/Library/Homebrew/test/test_stdlib.rb
+++ b/Library/Homebrew/test/test_stdlib.rb
@@ -44,11 +44,11 @@ class CxxStdlibTests < Homebrew::TestCase
end
def test_apple_compiler_reporting
- assert @clang.apple_compiler?
- assert @gcc.apple_compiler?
- assert @llvm.apple_compiler?
- assert @gcc4.apple_compiler?
- assert !@gcc48.apple_compiler?
+ assert_predicate @clang, :apple_compiler?
+ assert_predicate @gcc, :apple_compiler?
+ assert_predicate @llvm, :apple_compiler?
+ assert_predicate @gcc4, :apple_compiler?
+ refute_predicate @gcc48, :apple_compiler?
end
def test_type_string_formatting