From 86d7442a5f77c86813c4649b7446b7050d13a8ba Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Sat, 12 Jan 2013 19:15:08 +0100 Subject: [PATCH] support comments in test tables --- features/step_definitions/routing.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/step_definitions/routing.rb b/features/step_definitions/routing.rb index 32e6f60e5..17a3251c0 100644 --- a/features/step_definitions/routing.rb +++ b/features/step_definitions/routing.rb @@ -46,6 +46,9 @@ When /^I route I should get$/ do |table| if table.headers.include? 'turns' got['turns'] = turns end + if table.headers.include? '#' # comment column + got['#'] = row['#'] # copy value so it always match + end end ok = true