require 'rubygems'
require 'bundler'
Bundler.setup

require 'tmpdir'
require 'aruba/cucumber'
require 'safe_yaml'

SafeYAML::OPTIONS[:default_mode] = :safe

Before do
  ENV['GIT_COMMITTER_NAME'] = ENV['GIT_AUTHOR_NAME'] = 'J. Test'
  ENV['GIT_COMMITTER_EMAIL'] = ENV['GIT_AUTHOR_EMAIL'] = 'test@example.org'
  @tmpdir = Dir.mktmpdir('gestion-adh')
  @dirs = [@tmpdir]
end

After do
  FileUtils.remove_entry_secure @tmpdir
end
