aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
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