]> nos-oignons.net Git - gestion-adh.git/blob - features/support/env.rb
afaec3321dc3504272dd6f073350a21790616e4d
[gestion-adh.git] / features / support / env.rb
1 require 'rubygems'
2 require 'bundler'
3 Bundler.setup
4
5 require 'tmpdir'
6 require 'aruba/cucumber'
7 require 'safe_yaml'
8
9 SafeYAML::OPTIONS[:default_mode] = :safe
10
11 Before do
12   ENV['GIT_COMMITTER_NAME'] = ENV['GIT_AUTHOR_NAME'] = 'J. Test'
13   ENV['GIT_COMMITTER_EMAIL'] = ENV['GIT_AUTHOR_EMAIL'] = 'test@example.org'
14   @tmpdir = Dir.mktmpdir('gestion-adh')
15   @dirs = [@tmpdir]
16   @aruba_io_wait_seconds = 0.5
17 end
18
19 After do
20   FileUtils.remove_entry_secure @tmpdir
21 end