Sha256: 34835627beb717ec45e73c14daafa4f73b8b36b839853165d4571f09a15af199
Contents?: true
Size: 620 Bytes
Versions: 22
Compression:
Stored size: 620 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class StringsParamTest < Test::Unit::TestCase include SproutTestCase context "a new StringsParam" do setup do @param = Sprout::Executable::Strings.new @param.name = "strings" end ['abcd', 1234, true].each do |value| should "throw with non-enumerable assignment of #{value}" do assert_raises Sprout::Errors::ExecutableError do @param.value = value end end end should "not escape spaces" do @param.value << "a b c" assert_equal '--strings+=a b c', @param.to_shell end end end
Version data entries
22 entries across 22 versions & 1 rubygems