Sha256: 138c8cd2436ee42b32fc3956af9987a68bc75c73088bcf556412e542cae5abcd
Contents?: true
Size: 384 Bytes
Versions: 53
Compression:
Stored size: 384 Bytes
Contents
require File.expand_path("../helper", __FILE__) class TestLocalContext < Minitest::Unit::TestCase def setup @local = Kameleon::LocalContext.new end def test_echo_cmd out = capture_io{ @local.exec "echo mymessage" }.join '' assert_equal "mymessage\n", out out = capture_io{ @local.exec "echo >&2 myerror" }.join '' assert_equal "myerror\n", out end end
Version data entries
53 entries across 53 versions & 1 rubygems