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.1.pre test/unit/string_param_test.rb
sprout-1.0.0.pre test/unit/string_param_test.rb