aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2013-01-23 00:26:30 -0600
committerJack Nagel2013-01-26 12:14:51 -0600
commit8d03c760c2429eaa25a268d267a65c8076c5e104 (patch)
tree83c98a9b55df0a071595900315197916f28c7c7a /Library/Homebrew/test
parente05a509fb6c7c69003a1af58ec24bf0be55dd8b0 (diff)
downloadbrew-8d03c760c2429eaa25a268d267a65c8076c5e104.tar.bz2
Fix Dependencies -> Array conversion
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_dependencies.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_dependencies.rb b/Library/Homebrew/test/test_dependencies.rb
index acf613b3d..973041e01 100644
--- a/Library/Homebrew/test/test_dependencies.rb
+++ b/Library/Homebrew/test/test_dependencies.rb
@@ -33,7 +33,15 @@ class DependenciesTests < Test::Unit::TestCase
assert_equal %q{foo, bar}, @deps*', '
end
+ def test_to_a
+ dep = Dependency.new("foo")
+ @deps << dep
+ assert_equal [dep], @deps.to_a
+ end
+
def test_to_ary
- assert_instance_of Array, @deps.to_ary
+ dep = Dependency.new("foo")
+ @deps << dep
+ assert_equal [dep], @deps.to_ary
end
end