diff options
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_blacklist.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_os_mac_blacklist.rb | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_blacklist.rb b/Library/Homebrew/test/test_blacklist.rb index f700f361b..585a35484 100644 --- a/Library/Homebrew/test/test_blacklist.rb +++ b/Library/Homebrew/test/test_blacklist.rb @@ -30,10 +30,6 @@ class BlacklistTests < Homebrew::TestCase %w[lzma liblzma].each { |s| assert_blacklisted s } end - def test_xcode - %w[xcode Xcode].each { |s| assert_blacklisted s } - end - def test_gtest %w[gtest googletest google-test].each { |s| assert_blacklisted s } end diff --git a/Library/Homebrew/test/test_os_mac_blacklist.rb b/Library/Homebrew/test/test_os_mac_blacklist.rb new file mode 100644 index 000000000..e5becc9d2 --- /dev/null +++ b/Library/Homebrew/test/test_os_mac_blacklist.rb @@ -0,0 +1,12 @@ +require "testing_env" +require "blacklist" + +class BlacklistTests < Homebrew::TestCase + def assert_blacklisted(s) + assert blacklisted?(s), "'#{s}' should be blacklisted" + end + + def test_xcode + %w[xcode Xcode].each { |s| assert_blacklisted s } + end +end |
