Skip to content

Commit

Permalink
Merge pull request #2276 from rbenv/openssl-test
Browse files Browse the repository at this point in the history
Add tests for functionality related to linking to OpenSSL
  • Loading branch information
mislav committed Oct 17, 2023
2 parents fe933ab + 08b1cfa commit 1dc3628
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 68 deletions.
14 changes: 6 additions & 8 deletions test/arguments.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@
load test_helper

@test "not enough arguments for ruby-build" {
mkdir -p "$TMP"
# use empty inline definition so nothing gets built anyway
local definition="${TMP}/build-definition"
echo '' > "$definition"

run ruby-build "$definition"
touch "${TMP}/empty-definition"
run ruby-build "${TMP}/empty-definition"
assert_failure
assert_output_contains 'Usage: ruby-build'
}

@test "extra arguments for ruby-build" {
mkdir -p "$TMP"
# use empty inline definition so nothing gets built anyway
local definition="${TMP}/build-definition"
echo '' > "$definition"

run ruby-build "$definition" "${TMP}/install" ""
touch "${TMP}/empty-definition"
run ruby-build "${TMP}/empty-definition" "${TMP}/install" ""
assert_failure
assert_output_contains 'Usage: ruby-build'
}
Loading

0 comments on commit 1dc3628

Please sign in to comment.