mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
23 lines
603 B
Bash
23 lines
603 B
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helper
|
|
|
|
@test "not enough arguments for ruby-build" {
|
|
# use empty inline definition so nothing gets built anyway
|
|
local definition="${TMP}/build-definition"
|
|
echo '' > "$definition"
|
|
|
|
run ruby-build "$definition"
|
|
assert_failure
|
|
assert_output_contains 'Usage: ruby-build'
|
|
}
|
|
|
|
@test "extra arguments for ruby-build" {
|
|
# use empty inline definition so nothing gets built anyway
|
|
local definition="${TMP}/build-definition"
|
|
echo '' > "$definition"
|
|
|
|
run ruby-build "$definition" "${TMP}/install" ""
|
|
assert_failure
|
|
assert_output_contains 'Usage: ruby-build'
|
|
}
|