diff --git a/spec/git.rb b/spec/git.rb index 34128b1..7ffa1e3 100644 --- a/spec/git.rb +++ b/spec/git.rb @@ -73,9 +73,9 @@ module Git Dir.chdir path, &block end - def run_formatter + def run_formatter(**arguments) in_repo do - FormatStaged.run formatter: "#{__dir__}/test_hook.rb {}", patterns: ['*.test'] + FormatStaged.run(**arguments, formatter: "#{__dir__}/test_hook.rb {}", patterns: ['*.test']) end end end