Skip to content

Commit

Permalink
Make test symmetrical
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 4390ff5 commit 5b04fa7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/unit/platforms/detect/os_common_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ def initialize
detector.winrm?.must_equal(true)
end

it "return winrm? false when winrm is not loaded" do
be = mock("Backend")
detector.instance_variable_set(:@backend, be)
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 5b04fa7

Please sign in to comment.