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 @orig_receipts_dir = ENV['NOS_OIGNONS_RECEIPTS_DIR']
25 ENV['NOS_OIGNONS_REMINDER_DB'] = File.join(current_dir, 'reminders.yaml')
26 NosOignons::ReminderDb.instance.reload!
27 ENV['NOS_OIGNONS_RECEIPTS_DIR'] = File.join(current_dir, 'receipts')
28 FileUtils.mkdir(ENV['NOS_OIGNONS_RECEIPTS_DIR'])
32 Mail::TestMailer.deliveries.clear
36 ENV['NOS_OIGNONS_REMINDER_DB'] = @orig_reminder_db_path
37 ENV['NOS_OIGNONS_BOARD_WIKI_PATH'] = @orig_wiki_path
38 ENV['NOS_OIGNONS_RECEIPTS_DIR'] = @orig_receipts_dir
39 FileUtils.remove_entry_secure @tmpdir