[cache_check.feature] version nr wasn't being checked properly
This commit is contained in:
parent
ead63cd251
commit
3a0e07e921
@ -2,14 +2,12 @@ Feature: cache_check
|
|||||||
Scenario: print version (-V flag)
|
Scenario: print version (-V flag)
|
||||||
When I run `cache_check -V`
|
When I run `cache_check -V`
|
||||||
|
|
||||||
Then it should pass
|
Then it should pass with version
|
||||||
And version to stdout
|
|
||||||
|
|
||||||
Scenario: print version (--version flag)
|
Scenario: print version (--version flag)
|
||||||
When I run `cache_check --version`
|
When I run `cache_check --version`
|
||||||
|
|
||||||
Then it should pass
|
Then it should pass with version
|
||||||
And version to stdout
|
|
||||||
|
|
||||||
Scenario: print help
|
Scenario: print help
|
||||||
When I run `cache_check --help`
|
When I run `cache_check --help`
|
||||||
@ -83,11 +81,9 @@ Feature: cache_check
|
|||||||
Then it should fail
|
Then it should fail
|
||||||
And it should give no output
|
And it should give no output
|
||||||
|
|
||||||
|
@announce
|
||||||
Scenario: A valid metadata area passes
|
Scenario: A valid metadata area passes
|
||||||
Given metadata containing:
|
Given valid cache metadata
|
||||||
"""
|
When I run `cache_check metadata.bin`
|
||||||
"""
|
|
||||||
|
|
||||||
When I run cache_check
|
|
||||||
Then it should pass
|
Then it should pass
|
||||||
|
|
||||||
|
@ -34,12 +34,6 @@ Then /^it should fail$/ do
|
|||||||
assert_success(false)
|
assert_success(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
VERSION="0.1.6\n"
|
|
||||||
|
|
||||||
Then /^version to stdout$/ do
|
|
||||||
assert_exact_output(VERSION, all_stdout)
|
|
||||||
end
|
|
||||||
|
|
||||||
USAGE =<<EOF
|
USAGE =<<EOF
|
||||||
Usage: cache_check [options] {device|file}
|
Usage: cache_check [options] {device|file}
|
||||||
Options:
|
Options:
|
||||||
|
Loading…
Reference in New Issue
Block a user