+Given /^le « pre-commit hook » correctement configuré$/ do
+ FileUtils.ln_s File.expand_path('../../../bin/pre-commit-hook', __FILE__),
+ "#{current_dir}/.git/hooks/pre-commit"
+end
+
+Given /^le « pre-receive hook » configuré sur le dépôt principal$/ do
+ FileUtils.ln_s File.expand_path('../../../bin/pre-receive-hook', __FILE__),
+ "#{@main_repository_path}/hooks/pre-receive"
+end
+
+When /je fais un `commit` du nouveau fichier$/ do
+ run_simple "git add #{@file}"
+ run_simple "git commit #{@file} -m 'new file'", false # do not fail on error