X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/92c014bab7ee310dcd4f94c193f8dc88e723b31b..8536514115cf732eec24348862e835bde52acdf1:/features/step_definitions/commands.rb diff --git a/features/step_definitions/commands.rb b/features/step_definitions/commands.rb index d069730..ae6d798 100644 --- a/features/step_definitions/commands.rb +++ b/features/step_definitions/commands.rb @@ -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