Split test files
This commit is contained in:
parent
c6dd3b9468
commit
6c2d234e55
@ -45,11 +45,3 @@ load test_helper
|
|||||||
assert_failure
|
assert_failure
|
||||||
assert_output "pyenv: cannot change working directory to \`$dir'"
|
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
11
test/pyenv_ext.bats
Normal 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"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user