X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/8bbb07a1bc5db944ba95fa5951ed40c3c1b968aa..4a99ae87e0f7fdd07d8820a724fbed1d8b2b5f36:/features/step_definitions/commands.rb?ds=sidebyside diff --git a/features/step_definitions/commands.rb b/features/step_definitions/commands.rb index d069730..685aa15 100644 --- a/features/step_definitions/commands.rb +++ b/features/step_definitions/commands.rb @@ -1,3 +1,13 @@ +#-*- coding: utf-8 -*- + +When /^j'exécute list\-emails$/ do + run_simple 'list-emails' +end + +When /^j'exécute update-ag-subscribers$/ do + run_simple 'update-ag-subscribers' +end + Then /^je ne dois pas avoir eu d'erreur$/ do assert_exit_status(0) end @@ -5,3 +15,12 @@ end Then /^je dois voir comme erreur "(.*?)"$/ do |expected| assert_failing_with(expected) end + +Then /^la sortie doit être vide$/ do + assert_exact_output('', all_stdout) +end + +Then /^la sortie doit être:$/ do |expected| + # add an extra line feed for nice scenario + assert_exact_output(expected + "\n", all_stdout) +end