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, 2 insertions, 2 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 5f438e69c1..193d8243dc 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -67,9 +67,9 @@ def windows_2012r2?
(host_version && host_version.start_with?("6.3"))
end
-def windows_10_or_2016?
+def windows_gte_10?
return false unless windows?
- (host_version && host_version.start_with?("10.0"))
+ Gem::Requirement.new(">= 10").satisfied_by?(Gem::Version.new(host_version))
end
def host_version