From 9a1890249593ae14e8c125356688f536c7bb2e8a Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Mon, 6 Jun 2022 11:34:19 +0200 Subject: [PATCH] Allow additional arguments to run_formatter --- spec/git.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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