aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-12-27 23:10:27 -0500
committerJack Nagel2014-12-27 23:11:32 -0500
commit3c9bee268bde9675e8091068750a89bb35d4b2f2 (patch)
tree2ed6f544c692831ac0d4971adca6bbd6d4eb3190 /Library
parent9e335fa0b8efc6061ec2ba011382bc65a9dd82e9 (diff)
downloadbrew-3c9bee268bde9675e8091068750a89bb35d4b2f2.tar.bz2
Preserve signature of #initialize in tests
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb6
-rw-r--r--Library/Homebrew/test/test_formula_install.rb5
2 files changed, 2 insertions, 9 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index 176980472..6af1dbca0 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -161,11 +161,7 @@ class FormulaTests < Homebrew::TestCase
mirror 'http://example.org/test-0.2.tbz'
sha256 TEST_SHA256
end
-
- def initialize
- super "test", Pathname.new(__FILE__).expand_path, :stable
- end
- end.new
+ end.new("test", Pathname.new(__FILE__).expand_path, :stable)
assert_equal 'http://example.com', f.homepage
assert_version_equal '0.1', f.version
diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb
index 00fc1da6b..399571620 100644
--- a/Library/Homebrew/test/test_formula_install.rb
+++ b/Library/Homebrew/test/test_formula_install.rb
@@ -54,10 +54,7 @@ class InstallTests < Homebrew::TestCase
f = Class.new(ScriptFileFormula) do
url "file://#{File.expand_path(__FILE__)}"
version "1"
- def initialize
- super "test_script_formula", Pathname.new(__FILE__).expand_path, :stable
- end
- end.new
+ end.new("test_script_formula", Pathname.new(__FILE__).expand_path, :stable)
temporary_install(f) { assert_equal 1, f.bin.children.length }
end