diff options
| author | Adam Vandenberg | 2009-12-18 16:38:48 -0800 |
|---|---|---|
| committer | Max Howell | 2009-12-20 12:56:49 +0000 |
| commit | d3fe4a8acceaf5382471ac5ee9d73642fec41149 (patch) | |
| tree | 48911c81842fd8d6564186e83b0257e3d270e954 /Library | |
| parent | f53322442716747eb546fcc5a1a4d2390f84ea84 (diff) | |
| download | brew-d3fe4a8acceaf5382471ac5ee9d73642fec41149.tar.bz2 | |
Add unittest for issue Homebrew/homebrew#127
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/test/unittest.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Homebrew/test/unittest.rb b/Library/Homebrew/test/unittest.rb index f2c5d73b2..8e4696fc0 100755 --- a/Library/Homebrew/test/unittest.rb +++ b/Library/Homebrew/test/unittest.rb @@ -47,8 +47,7 @@ class ExecutionError <RuntimeError end end -class BuildError <ExecutionError -end +class BuildError <ExecutionError; end require 'test/unit' # must be after at_exit require 'extend/ARGV' # needs to be after test/unit to avoid conflict with OptionsParser @@ -151,6 +150,13 @@ ARGV.extend ExtendArgvPlusYeast class BeerTasting <Test::Unit::TestCase + def test_put_columns_empty + assert_nothing_raised do + # Issue #217 put columns with new results fails. + puts_columns [] + end + end + def test_version_all_dots r=MockFormula.new "http://example.com/foo.bar.la.1.14.zip" assert_equal '1.14', r.version |
