diff --git a/features/cache_check.feature b/features/cache_check.feature index 14e48fa..67ce112 100644 --- a/features/cache_check.feature +++ b/features/cache_check.feature @@ -2,14 +2,12 @@ Feature: cache_check Scenario: print version (-V flag) When I run `cache_check -V` - Then it should pass - And version to stdout + Then it should pass with version Scenario: print version (--version flag) When I run `cache_check --version` - Then it should pass - And version to stdout + Then it should pass with version Scenario: print help When I run `cache_check --help` @@ -83,11 +81,9 @@ Feature: cache_check Then it should fail And it should give no output + @announce Scenario: A valid metadata area passes - Given metadata containing: - """ - """ - - When I run cache_check + Given valid cache metadata + When I run `cache_check metadata.bin` Then it should pass diff --git a/features/step_definitions/cache_steps.rb b/features/step_definitions/cache_steps.rb index 9635893..58217f4 100644 --- a/features/step_definitions/cache_steps.rb +++ b/features/step_definitions/cache_steps.rb @@ -34,12 +34,6 @@ Then /^it should fail$/ do assert_success(false) end -VERSION="0.1.6\n" - -Then /^version to stdout$/ do - assert_exact_output(VERSION, all_stdout) -end - USAGE =<