aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-12-18 16:38:48 -0800
committerMax Howell2009-12-20 12:56:49 +0000
commitd3fe4a8acceaf5382471ac5ee9d73642fec41149 (patch)
tree48911c81842fd8d6564186e83b0257e3d270e954 /Library
parentf53322442716747eb546fcc5a1a4d2390f84ea84 (diff)
downloadbrew-d3fe4a8acceaf5382471ac5ee9d73642fec41149.tar.bz2
Add unittest for issue Homebrew/homebrew#127
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/test/unittest.rb10
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