aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorUladzislau Shablinski2016-10-20 02:42:50 +0300
committerUladzislau Shablinski2016-10-20 03:09:28 +0300
commit4ec43d02f5c4b85de69a2103ba6e5d0d72dfc15f (patch)
tree8f6e0d498d161b8bfba575ba2403ac053065b72b /Library
parent0ae1785703cc816725c78bbff4b390b918d6fd29 (diff)
downloadbrew-4ec43d02f5c4b85de69a2103ba6e5d0d72dfc15f.tar.bz2
test_formula: fix tests
New name and old name must have different names
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index 37d3f0f59..a12983e4c 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -799,8 +799,8 @@ end
class AliasChangeTests < Homebrew::TestCase
attr_reader :f, :new_formula, :tab, :alias_path
- def make_formula(version)
- f = formula(alias_path: alias_path) { url "foo-#{version}" }
+ def make_formula(name, version)
+ f = formula(name, alias_path: alias_path) { url "foo-#{version}" }
f.build = tab
f
end
@@ -811,8 +811,8 @@ class AliasChangeTests < Homebrew::TestCase
@tab = Tab.empty
- @f = make_formula("1.0")
- @new_formula = make_formula("1.1")
+ @f = make_formula("formula_name", "1.0")
+ @new_formula = make_formula("new_formula_name", "1.1")
Formula.stubs(:installed).returns([f])
end