aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
-rw-r--r--Library/Homebrew/test/test_formula_validation.rb8
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