From 82db71f14084dc5521301261c0748c6ed7511c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtek=20Meloun?= Date: Sun, 29 Mar 2026 15:06:24 +0000 Subject: [PATCH 1/3] Fix --- spec/gotsha/action_dispatcher_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/gotsha/action_dispatcher_spec.rb b/spec/gotsha/action_dispatcher_spec.rb index 36e909e1..bd6b25bc 100644 --- a/spec/gotsha/action_dispatcher_spec.rb +++ b/spec/gotsha/action_dispatcher_spec.rb @@ -1,6 +1,14 @@ # frozen_string_literal: true RSpec.describe Gotsha::ActionDispatcher do + before do + allow(Gotsha::UserConfig).to receive(:blank?).and_return(false) + allow(Gotsha::UserConfig).to receive(:get).with(:ci).and_return(false) + allow(Gotsha::UserConfig).to receive(:get).with(:autogenerated).and_return(false) + allow(Gotsha::BashCommand).to receive(:run!).with("git config core.hooksPath") + .and_return(instance_double(Gotsha::BashCommand, text_output: Gotsha::Config::HOOKS_DIR)) + end + describe "without any action name" do it "calls Help action" do expect_any_instance_of(Gotsha::Actions::Help).to receive(:call) From d514ecc5524839e7e1b27a68ca9ab281392419c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtek=20Meloun?= Date: Sun, 29 Mar 2026 15:08:21 +0000 Subject: [PATCH 2/3] Add Mise --- mise.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mise.toml diff --git a/mise.toml b/mise.toml new file mode 100644 index 00000000..becf7706 --- /dev/null +++ b/mise.toml @@ -0,0 +1,2 @@ +[tools] +ruby = "3.4" From 655e025e551a7ca7d56dec3fac1389469ba3ff05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtek=20Meloun?= Date: Sun, 29 Mar 2026 15:09:14 +0000 Subject: [PATCH 3/3] Fix Rubocop complaints --- spec/gotsha/action_dispatcher_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/gotsha/action_dispatcher_spec.rb b/spec/gotsha/action_dispatcher_spec.rb index bd6b25bc..27c37b96 100644 --- a/spec/gotsha/action_dispatcher_spec.rb +++ b/spec/gotsha/action_dispatcher_spec.rb @@ -6,7 +6,7 @@ allow(Gotsha::UserConfig).to receive(:get).with(:ci).and_return(false) allow(Gotsha::UserConfig).to receive(:get).with(:autogenerated).and_return(false) allow(Gotsha::BashCommand).to receive(:run!).with("git config core.hooksPath") - .and_return(instance_double(Gotsha::BashCommand, text_output: Gotsha::Config::HOOKS_DIR)) + .and_return(instance_double(Gotsha::BashCommand, text_output: Gotsha::Config::HOOKS_DIR)) end describe "without any action name" do