3 Given /^un clone du Git contenant les adhésions$/ do
4 # Create main repository
9 BASE_SUBSCRIPTIONS.each_pair do |number, data|
10 file = subscription_filename_for_id(number)
11 write_file file, render_subscription_file(data)
12 run_simple "git add #{file}"
14 run_simple 'git commit -m "Initial data set from fixtures"'
18 run_simple 'git clone main clone'
22 Given /^le « pre-commit hook » correctement configuré$/ do
23 FileUtils.ln_s File.expand_path('../../../bin/pre-commit-hook', __FILE__),
24 "#{current_dir}/.git/hooks/pre-commit"
27 When /je fais un `commit` du nouveau fichier$/ do
28 run_simple "git add #{@file}"
29 run_simple "git commit #{@file} -m 'new file'", false # do not fail on error