]> nos-oignons.net Git - gestion-adh.git/blobdiff - features/step_definitions/commands.rb
Start implementing update-ag-subscribers
[gestion-adh.git] / features / step_definitions / commands.rb
index ce9c5daa6c89e7756a69ea90fac3f7c29bc9e565..685aa158906edabe144cb84c55a3295c9a8a78c1 100644 (file)
@@ -1,7 +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
@@ -10,8 +16,8 @@ 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|