]> nos-oignons.net Git - gestion-adh.git/blobdiff - features/step_definitions/subscriptions.rb
Next step in pre-commit hook implementation
[gestion-adh.git] / features / step_definitions / subscriptions.rb
index 2c07a72a06959df71d63096e98eacaa6ee175bd0..4c20ddc0ac666d842db4fef581d555b842fad768 100644 (file)
@@ -36,3 +36,16 @@ When /^j'ajoute une fiche sans email$/ do
     ---
   EOF
 end
+
+When /^j'ajoute une fiche sans nom$/ do
+  @file = subscription_filename_for_id(new_id)
+  write_file @file, <<-EOF.gsub(/^    /, '')
+    ---
+    email: joe@example.org
+    address: |
+      21 Jump Street
+      42000 Synthé
+    membership_fee_paid_on: 2013-02-20
+    ---
+  EOF
+end