cd 'clone'
 end
 
-When /je fait un `commit` du nouveau fichier$/ do
+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
+
+When /je fais un `commit` du nouveau fichier$/ do
   run_simple "git add #{@file}"
-  run_simple "git commit #{@file} -m 'new file'"
+  run_simple "git commit #{@file} -m 'new file'", false # do not fail on error
 end