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

Version Path
kameleon-builder-2.10.11 tests/test_context.rb
kameleon-builder-2.10.10 tests/test_context.rb
kameleon-builder-2.10.9 tests/test_context.rb
kameleon-builder-2.10.8 tests/test_context.rb
kameleon-builder-2.10.7 tests/test_context.rb
kameleon-builder-2.10.6 tests/test_context.rb
kameleon-builder-2.10.5 tests/test_context.rb
kameleon-builder-2.10.4 tests/test_context.rb
kameleon-builder-2.10.3 tests/test_context.rb
kameleon-builder-2.10.2 tests/test_context.rb
kameleon-builder-2.10.1 tests/test_context.rb
kameleon-builder-2.9.4 tests/test_context.rb
kameleon-builder-2.9.2 tests/test_context.rb
kameleon-builder-2.9.1 tests/test_context.rb
kameleon-builder-2.9.0 tests/test_context.rb
kameleon-builder-2.8.3 tests/test_context.rb
kameleon-builder-2.8.2 tests/test_context.rb
kameleon-builder-2.8.1 tests/test_context.rb
kameleon-builder-2.7.8 tests/test_context.rb
kameleon-builder-2.7.7 tests/test_context.rb