From 3a0e07e921f3e56f23b51140dee4b107056b9c0b Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 11 Oct 2013 11:03:26 +0100 Subject: [PATCH] [cache_check.feature] version nr wasn't being checked properly --- features/cache_check.feature | 14 +++++--------- features/step_definitions/cache_steps.rb | 6 ------ 2 files changed, 5 insertions(+), 15 deletions(-) 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 =<