X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/d3ecf2f4bc9b937b653b09f8f4fb5e4917b0d312..e4000b47cf37576b44d21dc088601d619a6e5261:/features/step_definitions/subscriptions.rb diff --git a/features/step_definitions/subscriptions.rb b/features/step_definitions/subscriptions.rb index 8d3a754..50f3dbb 100644 --- a/features/step_definitions/subscriptions.rb +++ b/features/step_definitions/subscriptions.rb @@ -14,3 +14,12 @@ When /^j'ajoute une fiche sans YAML$/ do Ceci est une fiche sans YAML. EOF end + +When /^j'ajoute une fiche avec du mauvais YAML$/ do + @file = subscription_filename_for_id(new_id) + write_file @file, <<-EOF.gsub(/^ /, '') + --- + [This is missing a closing bracket + --- + EOF +end