Merge pull request #4381 from inspec/zenspider/oops2

Moved the osx? guard below minitest/autorun.
This commit is contained in:
Ryan Davis 2019-08-12 11:01:06 -07:00 committed by GitHub
commit 33e912dd1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,13 +23,6 @@ if ENV["CI_ENABLE_COVERAGE"]
end
end
module Minitest::Guard
# TODO: push up to minitest
def osx?(platform = RUBY_PLATFORM)
/darwin/ =~ platform
end
end
##
#
# Do not add any other code from here until the end of this code
@ -163,6 +156,9 @@ class InspecTest < Minitest::Test
# shared stuff here
end
class ParallelTest < InspecTest
parallelize_me!
module Minitest::Guard
# TODO: push up to minitest
def osx?(platform = RUBY_PLATFORM)
/darwin/ =~ platform
end
end