summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support')
-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 2d4dd2ff7e..3cc8778f7a 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -70,9 +70,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