diff options
| author | Jack Nagel | 2013-12-12 14:53:53 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-12 14:53:53 -0600 |
| commit | a55f66839aa705468d6ada8a104906d75db12ccb (patch) | |
| tree | 8260077ac1b1b28b13e0cd46879e4f49f006711e /Library | |
| parent | 00d0de5b240571118e41360a615776a172094f2f (diff) | |
| download | brew-a55f66839aa705468d6ada8a104906d75db12ccb.tar.bz2 | |
Add another fails_with test
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_fails_with.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_fails_with.rb b/Library/Homebrew/test/test_fails_with.rb index 642d9c060..73393a587 100644 --- a/Library/Homebrew/test/test_fails_with.rb +++ b/Library/Homebrew/test/test_fails_with.rb @@ -49,8 +49,8 @@ class FailsWithTests < Test::Unit::TestCase def test_non_apple_gcc_version fails_with(:gcc => '4.8') - cc = build_cc("gcc-4.8", nil, "4.8.1") - assert_fails_with cc + assert_fails_with build_cc("gcc-4.8", "4.8") + assert_fails_with build_cc("gcc-4.8", "4.8.1") end def test_multiple_failures @@ -63,4 +63,11 @@ class FailsWithTests < Test::Unit::TestCase assert_fails_with clang assert_does_not_fail_with gcc end + + def test_fails_with_version + fails_with(:gcc => '4.8') { version '4.8.1' } + assert_fails_with build_cc("gcc-4.8", "4.8") + assert_fails_with build_cc("gcc-4.8", "4.8.1") + assert_does_not_fail_with build_cc("gcc-4.8", "4.8.2") + end end |
