[thin_delta] read in the snaps and dev
This commit is contained in:
@@ -12,7 +12,7 @@ Feature: thin_delta
|
||||
Then it should pass with:
|
||||
|
||||
"""
|
||||
Usage: thin_delta [options]
|
||||
Usage: thin_delta [options] --snap1 <snap> --snap2 <snap> <device or file>
|
||||
Options:
|
||||
{-h|--help}
|
||||
{-V|--version}
|
||||
@@ -22,7 +22,7 @@ Feature: thin_delta
|
||||
When I run `thin_delta -h`
|
||||
Then it should pass with:
|
||||
"""
|
||||
Usage: thin_delta [options]
|
||||
Usage: thin_delta [options] --snap1 <snap> --snap2 <snap> <device or file>
|
||||
Options:
|
||||
{-h|--help}
|
||||
{-V|--version}
|
||||
@@ -31,3 +31,24 @@ Feature: thin_delta
|
||||
Scenario: Unrecognised option should cause failure
|
||||
When I run `thin_delta --unleash-the-hedeghogs`
|
||||
Then it should fail
|
||||
|
||||
Scenario: --snap1 must be specified
|
||||
When I run `thin_delta --snap2 45 foo`
|
||||
Then it should fail with:
|
||||
"""
|
||||
--snap1 not specified.
|
||||
"""
|
||||
|
||||
Scenario: --snap2 must be specified
|
||||
When I run `thin_delta --snap1 45 foo`
|
||||
Then it should fail with:
|
||||
"""
|
||||
--snap2 not specified.
|
||||
"""
|
||||
|
||||
Scenario: device must be specified
|
||||
When I run `thin_delta --snap1 45 --snap2 50`
|
||||
Then it should fail with:
|
||||
"""
|
||||
No input device provided.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user