mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
15 lines
360 B
Ruby
15 lines
360 B
Ruby
require 'testing_env'
|
|
|
|
class UtilTests < Homebrew::TestCase
|
|
def test_put_columns_empty
|
|
# Issue #217 put columns with new results fails.
|
|
assert_silent { puts_columns [] }
|
|
end
|
|
|
|
def test_popen_read
|
|
out = Utils.popen_read("/bin/sh", "-c", "echo success", &:read).chomp
|
|
assert_equal "success", out
|
|
assert_predicate $?, :success?
|
|
end
|
|
end
|