Preserve signature of #initialize in tests
This commit is contained in:
parent
9e335fa0b8
commit
3c9bee268b
@ -161,11 +161,7 @@ class FormulaTests < Homebrew::TestCase
|
|||||||
mirror 'http://example.org/test-0.2.tbz'
|
mirror 'http://example.org/test-0.2.tbz'
|
||||||
sha256 TEST_SHA256
|
sha256 TEST_SHA256
|
||||||
end
|
end
|
||||||
|
end.new("test", Pathname.new(__FILE__).expand_path, :stable)
|
||||||
def initialize
|
|
||||||
super "test", Pathname.new(__FILE__).expand_path, :stable
|
|
||||||
end
|
|
||||||
end.new
|
|
||||||
|
|
||||||
assert_equal 'http://example.com', f.homepage
|
assert_equal 'http://example.com', f.homepage
|
||||||
assert_version_equal '0.1', f.version
|
assert_version_equal '0.1', f.version
|
||||||
|
|||||||
@ -54,10 +54,7 @@ class InstallTests < Homebrew::TestCase
|
|||||||
f = Class.new(ScriptFileFormula) do
|
f = Class.new(ScriptFileFormula) do
|
||||||
url "file://#{File.expand_path(__FILE__)}"
|
url "file://#{File.expand_path(__FILE__)}"
|
||||||
version "1"
|
version "1"
|
||||||
def initialize
|
end.new("test_script_formula", Pathname.new(__FILE__).expand_path, :stable)
|
||||||
super "test_script_formula", Pathname.new(__FILE__).expand_path, :stable
|
|
||||||
end
|
|
||||||
end.new
|
|
||||||
|
|
||||||
temporary_install(f) { assert_equal 1, f.bin.children.length }
|
temporary_install(f) { assert_equal 1, f.bin.children.length }
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user