Sha256: f1e002aaf183b01e3f74fd6bc90e072d46f5224efd95dd7dbc5db9da23b3dfa7

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

require '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

4 entries across 4 versions & 1 rubygems

Version Path
sprout-1.0.35.pre test/unit/string_param_test.rb
sprout-1.0.32.pre test/unit/string_param_test.rb
sprout-1.0.31.pre test/unit/string_param_test.rb
sprout-1.0.29.pre test/unit/string_param_test.rb