From 9908356cd197cbe9c01e17758bac18fa324fb803 Mon Sep 17 00:00:00 2001 From: everzet Date: Fri, 27 Jan 2012 10:24:56 +0100 Subject: [PATCH] added error-catching scenario --- features/annotations/result_types.feature | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/features/annotations/result_types.feature b/features/annotations/result_types.feature index bc73e8da8..7ecc542c6 100644 --- a/features/annotations/result_types.feature +++ b/features/annotations/result_types.feature @@ -449,3 +449,53 @@ Feature: Different result types """ Step "/^customer bought coffee$/" is already defined in FeatureContext::chosen() """ + + Scenario: Error-containing steps + Given a file named "features/coffee.feature" with: + """ + Feature: Redundant actions + In order to be able to know about errors in definitions as soon as possible + As a coffee machine mechanic + I need to be able to know about redundant menu definitions + + Scenario: Redundant menu + Given customer bought coffee + And customer bought another one coffee + """ + And a file named "features/bootstrap/FeatureContext.php" with: + """ +