+When /^j'exécute list-emails le (\d+)\-(\d+)\-(\d+)$/ do |year, month, day|$/
+ Timecop.travel(Time.new(year, month, day)) do
+ stdout_io = StringIO.new
+ begin
+ $stdout = stdout_io
+ NosOignons.list_emails!
+ @stdout = stdout_io.string
+ ensure
+ $stdout = STDOUT
+ end
+ end
+end
+