mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 03:49:49 -05:00
test_dependency_expansion: dep names should always be strings
This commit is contained in:
1 parent
99c976e8cb
commit
d74c024000
1 file changed
+2
-2
@@ -3,7 +3,7 @@ require 'dependency'
|
||||
|
||||
class DependencyExpansionTests < Test::Unit::TestCase
|
||||
def build_dep(name, deps=[])
|
||||
dep = Dependency.new(name)
|
||||
dep = Dependency.new(name.to_s)
|
||||
dep.stubs(:to_formula).returns(stub(:deps => deps))
|
||||
dep
|
||||
end
|
||||
@@ -36,7 +36,7 @@ class DependencyExpansionTests < Test::Unit::TestCase
|
||||
|
||||
def test_expand_selective_pruning
|
||||
deps = Dependency.expand(@f) do |_, dep|
|
||||
Dependency.prune if dep.name == :foo
|
||||
Dependency.prune if dep.name == 'foo'
|
||||
end
|
||||
|
||||
assert_equal [@bar, @baz, @qux], deps
|
||||
|
||||
Reference in new issue
Block a user