X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/8bbb07a1bc5db944ba95fa5951ed40c3c1b968aa..e4000b47cf37576b44d21dc088601d619a6e5261:/features/step_definitions/subscriptions.rb diff --git a/features/step_definitions/subscriptions.rb b/features/step_definitions/subscriptions.rb index 76a4a1a..50f3dbb 100644 --- a/features/step_definitions/subscriptions.rb +++ b/features/step_definitions/subscriptions.rb @@ -7,3 +7,19 @@ When /^j'ajoute une fiche vide$/ do @file = subscription_filename_for_id(new_id) write_file @file, '' end + +When /^j'ajoute une fiche sans YAML$/ do + @file = subscription_filename_for_id(new_id) + write_file @file, <<-EOF.gsub(/^ /, '') + 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