From 2754981bafb66179cce303e4047d293def426315 Mon Sep 17 00:00:00 2001 From: Shimon Shtein Date: Sun, 12 Mar 2023 13:46:11 +0200 Subject: [PATCH] Make foreman_host call optional (#805) --- test/test_plugin_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_plugin_helper.rb b/test/test_plugin_helper.rb index 72bb7d72..cc2b2b9a 100644 --- a/test/test_plugin_helper.rb +++ b/test/test_plugin_helper.rb @@ -96,7 +96,7 @@ module MockForemanHostname included do setup do @foreman_host = FactoryBot.create(:host, :managed) - ForemanRhCloud.expects(:foreman_host_name).returns(@foreman_host.name) + ForemanRhCloud.stubs(:foreman_host_name).returns(@foreman_host.name) end end end