tests: quote paths
parent
b846c86dbb
commit
b2279b7237
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bats
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
load ../test_helper
|
load ../test_helper
|
||||||
|
load ../../lib/log
|
||||||
load ../../lib/helpers
|
load ../../lib/helpers
|
||||||
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
|
load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh"
|
||||||
|
|
||||||
|
|
@ -21,30 +22,30 @@ function local_setup {
|
||||||
|
|
||||||
@test "plugins xterm: shorten command output" {
|
@test "plugins xterm: shorten command output" {
|
||||||
export SHORT_TERM_LINE=true
|
export SHORT_TERM_LINE=true
|
||||||
run _short-command ${BASH_IT}/test/fixtures/plugin/xterm/files/*
|
run _short-command "${BASH_IT}/test/fixtures/plugin/xterm/files"/*
|
||||||
assert_success
|
assert_success
|
||||||
assert_output ${BASH_IT}/test/fixtures/plugin/xterm/files/arg0
|
assert_output "${BASH_IT}/test/fixtures/plugin/xterm/files/arg0"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "plugins xterm: full command output" {
|
@test "plugins xterm: full command output" {
|
||||||
export SHORT_TERM_LINE=false
|
export SHORT_TERM_LINE=false
|
||||||
run _short-command ${BASH_IT}/test/fixtures/plugin/xterm/files/*
|
run _short-command "${BASH_IT}/test/fixtures/plugin/xterm/files"/*
|
||||||
assert_success
|
assert_success
|
||||||
assert_output "$(echo ${BASH_IT}/test/fixtures/plugin/xterm/files/*)"
|
assert_output "$(echo "${BASH_IT}/test/fixtures/plugin/xterm/files"/*)"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "plugins xterm: shorten dirname output" {
|
@test "plugins xterm: shorten dirname output" {
|
||||||
export SHORT_TERM_LINE=true
|
export SHORT_TERM_LINE=true
|
||||||
run _short-dirname
|
run _short-dirname
|
||||||
assert_success
|
assert_success
|
||||||
assert_output "$(basename $PWD)"
|
assert_output "$(basename "${PWD}")"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "plugins xterm: full dirname output" {
|
@test "plugins xterm: full dirname output" {
|
||||||
export SHORT_TERM_LINE=false
|
export SHORT_TERM_LINE=false
|
||||||
run _short-dirname
|
run _short-dirname
|
||||||
assert_success
|
assert_success
|
||||||
assert_output $PWD
|
assert_output "${PWD}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "plugins xterm: set xterm title" {
|
@test "plugins xterm: set xterm title" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue