-When /^que je pousse la modification$/ do
- run_simple "git add #{@file}"
- run_simple "git commit #{@file} -m 'new file'"
- run_simple 'git push origin master', false # do not fail on error
+When /je pousse la modification$/ do
+ run_command_and_stop "git add #{@file}"
+ run_command_and_stop "git commit #{@file} -m 'new file'"
+ run_command_and_stop 'git push origin master', :fail_on_error => false # do not fail on error