Sha256: af5c593fec2a5dbed0da74b320b429b629f08c70c5f3385367cbbae16d96efcd

Contents?: true

Size: 629 Bytes

Versions: 16

Compression:

Stored size: 629 Bytes

Contents

require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')

class TestMiscSystem < Test::Unit::TestCase
  setup do
    ENV.delete "TEST_VAR"
  end

  def test_env_add
    Misc.env_add "TEST_VAR", "test_value1"
    Misc.env_add "TEST_VAR", "test_value2"
    assert_equal "test_value2:test_value1", ENV["TEST_VAR"]
  end

  def test_env_add_prepend
    Misc.env_add "TEST_VAR", "test_value1", ":", false
    Misc.env_add "TEST_VAR", "test_value2", ":", false
    assert_equal "test_value1:test_value2", ENV["TEST_VAR"]
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
scout-essentials-1.6.3 test/scout/misc/test_system.rb
scout-essentials-1.6.2 test/scout/misc/test_system.rb
scout-essentials-1.6.1 test/scout/misc/test_system.rb
scout-essentials-1.6.0 test/scout/misc/test_system.rb
scout-essentials-1.3.1 test/scout/misc/test_system.rb
scout-essentials-1.3.0 test/scout/misc/test_system.rb
scout-essentials-1.2.0 test/scout/misc/test_system.rb
scout-essentials-1.1.1 test/scout/misc/test_system.rb
scout-essentials-1.1.0 test/scout/misc/test_system.rb
scout-essentials-1.0.0 test/scout/misc/test_system.rb
scout-gear-9.1.0 test/scout/misc/test_system.rb
scout-gear-9.0.0 test/scout/misc/test_system.rb
scout-gear-8.1.0 test/scout/misc/test_system.rb
scout-gear-8.0.0 test/scout/misc/test_system.rb
scout-gear-7.3.0 test/scout/misc/test_system.rb
scout-gear-7.2.0 test/scout/misc/test_system.rb