X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/8536514115cf732eec24348862e835bde52acdf1..c2e8982b068dc4f47015679ea383a424c4defef1:/features/step_definitions/commands.rb?ds=sidebyside diff --git a/features/step_definitions/commands.rb b/features/step_definitions/commands.rb index ae6d798..ce9c5da 100644 --- a/features/step_definitions/commands.rb +++ b/features/step_definitions/commands.rb @@ -13,3 +13,8 @@ end Then /^la sortie doit-être vide$/ do expect(all_output).to be_empty end + +Then /^la sortie doit être:$/ do |expected| + # add an extra line feed for nice scenario + assert_exact_output(expected + "\n", all_stdout) +end