diff --git a/test/unit/kubernetes-deploy/kubernetes_resource/horizontal_pod_autoscaler_test.rb b/test/unit/kubernetes-deploy/kubernetes_resource/horizontal_pod_autoscaler_test.rb
index <HASH>..<HASH> 100644
--- a/test/unit/kubernetes-deploy/kubernetes_resource/horizontal_pod_autoscaler_test.rb
+++ b/test/unit/kubernetes-deploy/kubernetes_resource/horizontal_pod_autoscaler_test.rb
@@ -7,7 +7,7 @@ class HorizontalPodAutoscalerTest < KubernetesDeploy::TestCase
   # We can't get integration coverage for HPA right now because the metrics server just isn't reliable enough on our CI
   def test_hpa_is_whitelisted_for_pruning
     KubernetesDeploy::Kubectl.any_instance.expects("run")
-      .with("get", "CustomResourceDefinition", "-a", "--output=json", attempts: 5)
+      .with("get", "CustomResourceDefinition", "-a", output: "json", attempts: 5)
       .returns(['{ "items": [] }', "", SystemExit.new(0)])
     task = KubernetesDeploy::DeployTask.new(namespace: 'test', context: KubeclientHelper::TEST_CONTEXT,
       current_sha: 'foo', template_dir: '', logger: logger)
Fix forward method signature (#<I>)