X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/9cb7fa95bef77a6d1e0888f741c76adc865f1b17..a9210121343f6bcb52154a2ca3cf2cff234e8857:/features/step_definitions/receipts.rb?ds=sidebyside diff --git a/features/step_definitions/receipts.rb b/features/step_definitions/receipts.rb index 7caa60b..9656bad 100644 --- a/features/step_definitions/receipts.rb +++ b/features/step_definitions/receipts.rb @@ -1,8 +1,24 @@ #-*- coding: utf-8 -*- +# +# Système de gestion des adhésions de Nos oignons +# Copyright © 2013-2014 Nos oignons +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . Then /^le fichier "(.*)" doit avoir été créé avec les reçus$/ do |filename| @receipt_path = "#{ENV['NOS_OIGNONS_RECEIPTS_DIR']}/#{filename}" - expect(File.exists?(@receipt_path)).to be_true + expect(File.exists?(@receipt_path)).to be_truthy end Then /^il doit contenir le nom et l'adresse de (\w+), la date et le montant de la cotisation$/ do |name|