Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e8e6c60438
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (21 sloc) 0.598 kB
require 'test_helper'
class StringsParamTest < Test::Unit::TestCase
include Sprout::TestHelper
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
Jump to Line
Something went wrong with that request. Please try again.