Overriding #initialize is not supported, so drop late validation

This commit is contained in:
Jack Nagel 2014-12-26 16:05:34 -05:00
parent dbfbe76ac1
commit 1bdeeefb94
2 changed files with 0 additions and 10 deletions

View File

@ -370,8 +370,6 @@ class Formula
# yields self with current working directory set to the uncompressed tarball
# @private
def brew
validate_attributes :name, :version
stage do
begin
patch

View File

@ -46,14 +46,6 @@ class FormulaValidationTests < Homebrew::TestCase
end
end
def test_validates_when_initialize_overridden
assert_invalid :name do
formula do
def initialize(*); end
end.brew {}
end
end
def test_devel_only_valid
f = formula do
devel do