blob: 07bb65c9014ff31c5e0eb6dfa1b48deec7626415 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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").chomp
assert_equal "success", out
assert_predicate $?, :success?
end
end
|