diff options
| author | Jack Nagel | 2013-10-14 21:46:21 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-10-14 21:46:21 -0500 | 
| commit | 980653027a046d2ee5aad6dd448b9c4bd7622c1f (patch) | |
| tree | 278d3df1b9f9a1c0810d207abeb98aeed46f10c1 | |
| parent | 046b147a97e88cbb39998f8531fa29c82d0e192c (diff) | |
| download | homebrew-980653027a046d2ee5aad6dd448b9c4bd7622c1f.tar.bz2 | |
Assert on state, not something that didn't happen
| -rw-r--r-- | Library/Homebrew/test/test_formula_validation.rb | 19 | 
1 files changed, 8 insertions, 11 deletions
| diff --git a/Library/Homebrew/test/test_formula_validation.rb b/Library/Homebrew/test/test_formula_validation.rb index 0bfff5ad2..8adff7f29 100644 --- a/Library/Homebrew/test/test_formula_validation.rb +++ b/Library/Homebrew/test/test_formula_validation.rb @@ -55,22 +55,19 @@ class FormulaValidationTests < Test::Unit::TestCase    end    def test_devel_only_valid -    assert_nothing_raised do -      formula do -        devel do -          url "foo" -          version "1.0" -        end +    f = formula do +      devel do +        url "foo" +        version "1.0"        end      end + +    assert_equal "foo", f.url    end    def test_head_only_valid -    assert_nothing_raised do -      formula do -        head "foo" -      end -    end +    f = formula { head "foo" } +    assert_equal "foo", f.url    end    def test_empty_formula_invalid | 
