pyenv/test/pyenv_ext.bats

12 lines
223 B
Text
Raw Normal View History

2014-11-14 00:55:56 -05:00
#!/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"
}