From a89b470ff377785fa36b71e555fa5a90725e814e Mon Sep 17 00:00:00 2001 From: Clinton Wolfe Date: Fri, 10 May 2019 17:47:46 -0400 Subject: [PATCH] Make test symmetrical Signed-off-by: Clinton Wolfe --- test/unit/platforms/detect/os_common_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/platforms/detect/os_common_test.rb b/test/unit/platforms/detect/os_common_test.rb index ee037ba8..43e154c4 100644 --- a/test/unit/platforms/detect/os_common_test.rb +++ b/test/unit/platforms/detect/os_common_test.rb @@ -21,8 +21,7 @@ def initialize end it 'return winrm? false when winrm is not loaded' do - be = mock('Backend') - detector.instance_variable_set(:@backend, be) + OsDetectLinuxTester.any_instance.stubs(:backend_name).returns('Something::Else') detector.winrm?.must_equal(false) end end