From 2e37e92b10f0fb768dc018f280557e5ad51a5547 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Tue, 4 Nov 2014 12:53:05 +0100 Subject: [PATCH] #17 extra test --- features/catches_broken_puzzles.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/features/catches_broken_puzzles.feature b/features/catches_broken_puzzles.feature index 17db985..2415157 100644 --- a/features/catches_broken_puzzles.feature +++ b/features/catches_broken_puzzles.feature @@ -33,3 +33,19 @@ Feature: Catches Broken Puzzles } """ When I run pdd it fails with "Too many spaces" + + Scenario: Throwing exception on yet another broken puzzle + Given I have a "Sample.java" file with content: + """ + public class Main { + // + // @todo #13 This puzzle has an incorrect format + // because there is no space character in the + // second and third lines + // + public void main(String[] args) { + // later + } + } + """ + When I run pdd it fails with "Space expected"