Sha256: 43aa6ccba091c59ef0ee433318233c3acbd0f7f7863ea0a2cb3ce2d7bafd36c2

Contents?: true

Size: 389 Bytes

Versions: 22

Compression:

Stored size: 389 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class StringParamTest < Test::Unit::TestCase
  include SproutTestCase

  context "a new StringParam" do

    setup do
      @param = Sprout::Executable::StringParam.new
      @param.name = "string"
    end

    should "escape spaces" do
      @param.value = "a b c"
      assert_equal '--string=a\ b\ c', @param.to_shell
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sprout-1.0.26.pre test/unit/string_param_test.rb
sprout-1.0.25.pre test/unit/string_param_test.rb
sprout-1.0.24.pre test/unit/string_param_test.rb
sprout-1.0.23.pre test/unit/string_param_test.rb
sprout-1.0.22.pre test/unit/string_param_test.rb
sprout-1.0.20.pre test/unit/string_param_test.rb
sprout-1.0.19.pre test/unit/string_param_test.rb
sprout-1.0.18.pre test/unit/string_param_test.rb
sprout-1.0.17.pre test/unit/string_param_test.rb
sprout-1.0.16.pre test/unit/string_param_test.rb
sprout-1.0.15.pre test/unit/string_param_test.rb
sprout-1.0.14.pre test/unit/string_param_test.rb
sprout-1.0.13.pre test/unit/string_param_test.rb
sprout-1.0.11.pre test/unit/string_param_test.rb
sprout-1.0.9.pre test/unit/string_param_test.rb
sprout-1.0.8.pre test/unit/string_param_test.rb
sprout-1.0.5.pre test/unit/string_param_test.rb
sprout-1.0.4.pre test/unit/string_param_test.rb
sprout-1.0.3.pre test/unit/string_param_test.rb
sprout-1.0.2.pre test/unit/string_param_test.rb