]> nos-oignons.net Git - gestion-adh.git/blob - features/support/env.rb
Next step in pre-commit hook implementation
[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 end
17
18 After do
19   FileUtils.remove_entry_secure @tmpdir
20 end