From 43cb18349224f80c3edd060b121db9657c800e64 Mon Sep 17 00:00:00 2001 From: Nick Pezza Date: Mon, 26 Aug 2024 09:22:06 -0400 Subject: [PATCH] Stub docker command to fix tests --- test/integration/main_test.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/integration/main_test.rb b/test/integration/main_test.rb index c19c86628..c0c432804 100644 --- a/test/integration/main_test.rb +++ b/test/integration/main_test.rb @@ -10,9 +10,15 @@ class MainTest < IntegrationTest assert_app_is_down - kamal :deploy + mock = Minitest::Mock.new + mock.expect(:manifest, false, [ first_version ]) + mock.expect(:installed?, true) + mock.expect(:running?, true) + Kamal::Commands::Docker.stub(:new, mock) do + kamal :deploy + end assert_app_is_up version: first_version - assert_hooks_ran "pre-connect", "pre-deploy", "post-deploy" + assert_hooks_ran "pre-connect", "pre-build", "pre-deploy", "post-deploy" assert_envs version: first_version second_version = update_app_rev