Split test files

This commit is contained in:
Yamashita Yuu 2014-11-13 21:55:56 -08:00
parent c6dd3b9468
commit 6c2d234e55
2 changed files with 11 additions and 8 deletions

View file

@ -45,11 +45,3 @@ load test_helper
assert_failure
assert_output "pyenv: cannot change working directory to \`$dir'"
}
@test "conflicting GREP_OPTIONS" {
file="${BATS_TMPDIR}/hello"
echo "hello" > "$file"
GREP_OPTIONS="-F" run pyenv grep "hell." "$file"
assert_success
assert_output "hello"
}

11
test/pyenv_ext.bats Normal file
View file

@ -0,0 +1,11 @@
#!/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"
}