summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index b29c860f30..0beea829fd 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -122,6 +122,10 @@ def macos?
RUBY_PLATFORM.include?("darwin")
end
+def macos_gte_11?
+ macos? && !!(ohai[:platform_version].to_i >= 11)
+end
+
def solaris?
RUBY_PLATFORM.include?("solaris")
end