mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-21 20:35:10 +00:00
Use version
command for tests that expect it in version.bats.
This commit is contained in:
parent
4265bfe1f9
commit
0bd1c32cd1
@ -3,12 +3,12 @@
|
||||
load test_helper
|
||||
|
||||
@test "\`hosts version\` returns with 0 status." {
|
||||
run "$_HOSTS" --version
|
||||
run "$_HOSTS" version
|
||||
[[ "$status" -eq 0 ]]
|
||||
}
|
||||
|
||||
@test "\`hosts version\` prints a version number." {
|
||||
run "$_HOSTS" --version
|
||||
run "$_HOSTS" version
|
||||
printf "'%s'" "$output"
|
||||
echo "$output" | grep -q '\d\+\.\d\+\.\d\+'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user