diff options
| author | Jack Nagel | 2014-12-26 16:05:34 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-26 16:05:34 -0500 |
| commit | 6d3f16aa5183415ad8820e80b992236981cc3e52 (patch) | |
| tree | fa3f9803cbcfcbb8bda062bc51d06eb4d63c6985 | |
| parent | 054ddc1db659f060de2f8560a1fe351b97fcb9f5 (diff) | |
| download | homebrew-6d3f16aa5183415ad8820e80b992236981cc3e52.tar.bz2 | |
Overriding #initialize is not supported, so drop late validation
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_formula_validation.rb | 8 |
2 files changed, 0 insertions, 10 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 78b5752eb..1c8417f0f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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 diff --git a/Library/Homebrew/test/test_formula_validation.rb b/Library/Homebrew/test/test_formula_validation.rb index 44f789584..4bc16deb6 100644 --- a/Library/Homebrew/test/test_formula_validation.rb +++ b/Library/Homebrew/test/test_formula_validation.rb @@ -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 |
