aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula_validation.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-13 17:40:13 -0500
committerJack Nagel2013-04-13 17:40:13 -0500
commitf0b7f44415b0004cb6bcc909665777307b6d2543 (patch)
tree53638957a59a984ef10059843f113b63eea4002e /Library/Homebrew/test/test_formula_validation.rb
parent563d8be6bde6eaddcf4eb8d4fb9a10ed0af7ddb7 (diff)
downloadhomebrew-f0b7f44415b0004cb6bcc909665777307b6d2543.tar.bz2
Allow "devel-only" formulae
It seems only natural that this should be possible, or at the very least, it should not result in calling methods on nil.
Diffstat (limited to 'Library/Homebrew/test/test_formula_validation.rb')
-rw-r--r--Library/Homebrew/test/test_formula_validation.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_formula_validation.rb b/Library/Homebrew/test/test_formula_validation.rb
index be4c38c64..5c6bf2888 100644
--- a/Library/Homebrew/test/test_formula_validation.rb
+++ b/Library/Homebrew/test/test_formula_validation.rb
@@ -59,6 +59,17 @@ class FormulaValidationTests < Test::Unit::TestCase
end
end
+ def test_devel_only_valid
+ assert_nothing_raised do
+ formula do
+ devel do
+ url "foo"
+ version "1.0"
+ end
+ end
+ end
+ end
+
def test_head_only_valid
assert_nothing_raised do
formula do