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