]> nos-oignons.net Git - gestion-adh.git/blobdiff - features/step_definitions/commands.rb
Start implementing list-emails
[gestion-adh.git] / features / step_definitions / commands.rb
index d0697302d1cff4cdb249979b08e9b352fd46302e..ae6d798a4369ce2d015ba5c23385d186b120a6dd 100644 (file)
@@ -1,3 +1,7 @@
+When /^j'exécute list\-emails$/ do
+  run_simple 'list-emails'
+end
+
 Then /^je ne dois pas avoir eu d'erreur$/ do
   assert_exit_status(0)
 end
@@ -5,3 +9,7 @@ end
 Then /^je dois voir comme erreur "(.*?)"$/ do |expected|
   assert_failing_with(expected)
 end
+
+Then /^la sortie doit-être vide$/ do
+  expect(all_output).to be_empty
+end