From 008192f0afa92f6c12d1951449ef3527836502bc Mon Sep 17 00:00:00 2001 From: Clinton Wolfe Date: Wed, 31 Jul 2019 11:32:08 -0400 Subject: [PATCH] Get unit tests passing Signed-off-by: Clinton Wolfe --- lib/train/transports/mock.rb | 2 +- test/unit/platforms/detect/os_common_test.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/train/transports/mock.rb b/lib/train/transports/mock.rb index dd388800..23a64eed 100644 --- a/lib/train/transports/mock.rb +++ b/lib/train/transports/mock.rb @@ -33,7 +33,7 @@ def trace_calls } # rubocop:disable Metrics/ParameterLists - # rubocop:disable Lint/Eval + # rubocop:disable Security/Eval set_trace_func(proc { |event, _file, _line, id, binding, classname| unless classname.to_s.start_with?("Train::Transports::Mock") && (event == "call") && diff --git a/test/unit/platforms/detect/os_common_test.rb b/test/unit/platforms/detect/os_common_test.rb index 9fbcd5ad..14f1fc25 100644 --- a/test/unit/platforms/detect/os_common_test.rb +++ b/test/unit/platforms/detect/os_common_test.rb @@ -1,6 +1,6 @@ # encoding: utf-8 -require_relative "./../../helper" +require "helper" class OsDetectLinuxTester attr_reader :platform @@ -20,8 +20,8 @@ def initialize detector.winrm?.must_equal(true) end - it 'return winrm? false when winrm is not loaded' do - OsDetectLinuxTester.any_instance.stubs(:backend_name).returns('Something::Else') + it "return winrm? false when winrm is not loaded" do + OsDetectLinuxTester.any_instance.stubs(:backend_name).returns("Something::Else") detector.winrm?.must_equal(false) end end