diff options
| author | Jack Nagel | 2013-01-23 00:26:30 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-26 12:14:51 -0600 |
| commit | 7e8d3357896b893a6a7fa84c5bf7bfc146902ca6 (patch) | |
| tree | 3914030c7042c67484a0a6642a67564a24a6d332 /Library/Homebrew/test | |
| parent | 97310a0fed2a7d6c6c3518b36045d68167fd2918 (diff) | |
| download | homebrew-7e8d3357896b893a6a7fa84c5bf7bfc146902ca6.tar.bz2 | |
Fix Dependencies -> Array conversion
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_dependencies.rb | 10 |
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 |
