Skip to content

Commit

Permalink
Get unit tests passing
Browse files Browse the repository at this point in the history
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
  • Loading branch information
clintoncwolfe committed Jul 31, 2019
1 parent 5b04fa7 commit 008192f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/train/transports/mock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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") &&
Expand Down
6 changes: 3 additions & 3 deletions test/unit/platforms/detect/os_common_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8

require_relative "./../../helper"
require "helper"

class OsDetectLinuxTester
attr_reader :platform
Expand All @@ -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
Expand Down

0 comments on commit 008192f

Please sign in to comment.