X-Git-Url: https://www.nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/8536514115cf732eec24348862e835bde52acdf1..deb521438462ac0ed68b3e280c2dd044f8c1934f:/features/step_definitions/commands.rb diff --git a/features/step_definitions/commands.rb b/features/step_definitions/commands.rb index ae6d798..54bc747 100644 --- a/features/step_definitions/commands.rb +++ b/features/step_definitions/commands.rb @@ -10,6 +10,11 @@ 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 +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