Sha256: 6dc4cb279312f342b3379a2b171c1e6e0a6cc4fcffd54d81190cad88d5cf5664

Contents?: true

Size: 367 Bytes

Versions: 13

Compression:

Stored size: 367 Bytes

Contents

require 'test_helper'

class StringParamTest < Test::Unit::TestCase
  include Sprout::TestHelper

  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

13 entries across 13 versions & 1 rubygems

Version Path
sprout-1.1.18.pre test/unit/string_param_test.rb
sprout-1.1.17.pre test/unit/string_param_test.rb
sprout-1.1.16.pre test/unit/string_param_test.rb
sprout-1.1.15.pre test/unit/string_param_test.rb
sprout-1.1.14.pre test/unit/string_param_test.rb
sprout-1.1.13.pre test/unit/string_param_test.rb
sprout-1.1.11.pre test/unit/string_param_test.rb
sprout-1.1.10.pre test/unit/string_param_test.rb
sprout-1.1.7.pre test/unit/string_param_test.rb
sprout-1.1.5.pre test/unit/string_param_test.rb
sprout-1.1.4.pre test/unit/string_param_test.rb
sprout-1.1.3.pre test/unit/string_param_test.rb
sprout-1.1.2.pre test/unit/string_param_test.rb