fix(cli): use lowercase version option
This commit is contained in:
1 parent
5f90c24b8d
commit
2aa0a21056
3 files changed
+11
-9
No files matched your search
+6
-4
@@ -24,12 +24,14 @@ setup() { common_setup; }
|
||||
assert_line 'usage: skeptical-updater [options] [command]'
|
||||
}
|
||||
|
||||
@test "--version and -V print the version" {
|
||||
@test "--version and -v print the version" {
|
||||
run skup --version
|
||||
assert_success
|
||||
assert_output 'skeptical-updater 0.1.0'
|
||||
run skup -V
|
||||
assert_output 'skeptical-updater 0.1.0'
|
||||
assert_output --regexp '^skeptical-updater [0-9]+\.[0-9]+\.[0-9]+(\+(alpha|beta|rc)[.-]?[0-9]+)?$'
|
||||
local version=$output
|
||||
run skup -v
|
||||
assert_success
|
||||
assert_output "$version"
|
||||
}
|
||||
|
||||
@test "an unknown option is a usage error (exit 1)" {
|
||||
|
||||
Reference in new issue
Block a user