aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-04-10 12:02:35 -0500
committerJack Nagel2013-04-10 12:02:35 -0500
commitf96d8e99d59a3c026b389e10a6e0a48d2eca2eff (patch)
tree7b8dccb8c4b578d1c6ec5a4e9bc5fbdd2312c0ae /Library
parent2323dfdac143e10d224be4b9a7b54ce0015194b8 (diff)
downloadhomebrew-f96d8e99d59a3c026b389e10a6e0a48d2eca2eff.tar.bz2
Make test formulae initializers more flexible
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb2
-rw-r--r--Library/Homebrew/test/testball.rb44
2 files changed, 23 insertions, 23 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index 44d7b9bec..aafc91d23 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -101,7 +101,7 @@ class FormulaTests < Test::Unit::TestCase
assert_instance_of HeadSoftwareSpec, f.head
assert_equal 'file:///foo.com/testball-0.1.tbz', f.stable.url
- assert_equal "https://downloads.sf.net/project/machomebrew/Bottles/spectestball-0.1.#{MacOS.cat}.bottle.tar.gz",
+ assert_equal "https://downloads.sf.net/project/machomebrew/Bottles/spec_test_ball-0.1.#{MacOS.cat}.bottle.tar.gz",
f.bottle.url
assert_equal 'file:///foo.com/testball-0.2.tbz', f.devel.url
assert_equal 'https://github.com/mxcl/homebrew.git', f.head.url
diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb
index 5f8bc08c2..9516fec0b 100644
--- a/Library/Homebrew/test/testball.rb
+++ b/Library/Homebrew/test/testball.rb
@@ -21,8 +21,8 @@ class ConfigureFails < Formula
version '1.0.0'
sha1 'b36c65e5de86efef1b3a7e9cf78a98c186b400b3'
- def initialize(*)
- super "configurefails"
+ def initialize(name="configure_fails", path=nil)
+ super
end
def install
@@ -51,8 +51,8 @@ class SpecTestBall < Formula
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
end
- def initialize(*)
- super "spectestball"
+ def initialize(name="spec_test_ball", path=nil)
+ super
end
end
@@ -75,8 +75,8 @@ class ExplicitVersionSpecTestBall < Formula
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
end
- def initialize(*)
- super "explicitversionspectestball"
+ def initialize(name="explicit_version_spec_test_ball", path=nil)
+ super
end
end
@@ -84,8 +84,8 @@ class HeadOnlySpecTestBall < Formula
homepage 'http://example.com'
head 'https://github.com/mxcl/homebrew.git'
- def initialize(*)
- super "headyonlyspectestball"
+ def initialize(name="head_only_spec_test_ball", path=nil)
+ super
end
end
@@ -94,8 +94,8 @@ class IncompleteStableSpecTestBall < Formula
head 'https://github.com/mxcl/homebrew.git'
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
- def initialize(*)
- super "incompletestablespectestball"
+ def initialize(name="incomplete_spec_test_ball", path=nil)
+ super
end
end
@@ -104,8 +104,8 @@ class HeadOnlyWithVersionSpecTestBall < Formula
head 'https://github.com/mxcl/homebrew.git'
version '0.3'
- def initialize(*)
- super "headonlywithversionspectestball"
+ def initialize(name="head_only_with_version_spec_test_ball", path=nil)
+ super
end
end
@@ -118,8 +118,8 @@ class ExplicitStrategySpecTestBall < Formula
url 'file:///foo.com/testball-devel', :using => :bzr, :tag => '0.3'
end
- def initialize(*)
- super "explicitstrategyspectestball"
+ def initialize(name="explicit_strategy_spec_test_ball", path=nil)
+ super
end
end
@@ -133,8 +133,8 @@ class SnowLeopardBottleSpecTestBall < Formula
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :snow_leopard
end
- def initialize(*)
- super "snowleopardbottlespectestball"
+ def initialize(name="snow_leopard_bottle_spec_test_ball", path=nil)
+ super
end
end
@@ -148,8 +148,8 @@ class LionBottleSpecTestBall < Formula
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :lion
end
- def initialize(*)
- super "lionbottlespectestball"
+ def initialize(name="lion_bottle_spec_test_ball", path=nil)
+ super
end
end
@@ -167,8 +167,8 @@ class AllCatsBottleSpecTestBall < Formula
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
end
- def initialize(*)
- super "allcatsbottlespectestball"
+ def initialize(name="all_cats_bottle_spec_test_ball", path=nil)
+ super
end
end
@@ -185,7 +185,7 @@ class RevisedBottleSpecTestBall < Formula
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
end
- def initialize(*)
- super "revisedbottlespectestball"
+ def initialize(name="revised_bottle_spec_test_ball", path=nil)
+ super
end
end