pyenv/test/pyenv_ext.bats
2014-11-13 21:56:14 -08:00

11 lines
223 B
Bash

#!/usr/bin/env bats
load test_helper
@test "conflicting GREP_OPTIONS" {
file="${BATS_TMPDIR}/hello"
echo "hello" > "$file"
GREP_OPTIONS="-F" run pyenv grep "hell." "$file"
assert_success
assert_output "hello"
}