Improve ruby-build test for too many arguments

Use exactly the same arguments that would have `ruby-build` succeed at
executing, but add one more extra to test argument counting.
This commit is contained in:
Mislav Marohnić 2014-11-26 20:40:45 -08:00
parent fa38b660e2
commit 38ae3b56b0

View file

@ -17,7 +17,7 @@ load test_helper
local definition="${TMP}/build-definition"
echo '' > "$definition"
run ruby-build "$definition" 2.1.2 "${TMP}/install"
run ruby-build "$definition" "${TMP}/install" ""
assert_failure
assert_output_contains 'usage: ruby-build'
}