7 require 'aruba/cucumber'
11 SafeYAML::OPTIONS[:default_mode] = :safe
16 ENV['GIT_COMMITTER_NAME'] = ENV['GIT_AUTHOR_NAME'] = 'J. Test'
17 ENV['GIT_COMMITTER_EMAIL'] = ENV['GIT_AUTHOR_EMAIL'] = 'test@example.org'
18 @tmpdir = Dir.mktmpdir('gestion-adh')
20 @aruba_io_wait_seconds = 0.1
21 @aruba_timeout_seconds = 20
22 @orig_wiki_path = ENV['NOS_OIGNONS_BOARD_WIKI_PATH']
23 @orig_reminder_db_path = ENV['NOS_OIGNONS_REMINDER_DB']
24 ENV['NOS_OIGNONS_REMINDER_DB'] = File.join(current_dir, 'reminders.yaml')
25 NosOignons::ReminderDb.instance.reload!
29 Mail::TestMailer.deliveries.clear
33 ENV['NOS_OIGNONS_REMINDER_DB'] = @orig_reminder_db_path
34 ENV['NOS_OIGNONS_BOARD_WIKI_PATH'] = @orig_wiki_path
35 FileUtils.remove_entry_secure @tmpdir