summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-03-31 20:22:09 -0700
committerGitHub <noreply@github.com>2020-03-31 20:22:09 -0700
commit279047277b57fb1d64c59002cc5a8f2c8e871742 (patch)
treebd907ef6ef7318549221745ab96a98669395a5cd
parent6ae856dc424d42154f73a225f4fb71196c4c2f23 (diff)
parent3432af0568a56e2839b04c31c22717c4c4d1782a (diff)
downloadchef-279047277b57fb1d64c59002cc5a8f2c8e871742.tar.gz
Merge pull request #9563 from chef/btm/win10functional
Fix functional tests on Windows 10 by matching less
-rw-r--r--spec/functional/win32/version_info_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/win32/version_info_spec.rb b/spec/functional/win32/version_info_spec.rb
index 988339fd7a..2c5cd63357 100644
--- a/spec/functional/win32/version_info_spec.rb
+++ b/spec/functional/win32/version_info_spec.rb
@@ -32,12 +32,12 @@ describe "Chef::ReservedNames::Win32::File::VersionInfo", :windows_only do
subject { Chef::ReservedNames::Win32::File::VersionInfo.new(file_path) }
- it "file version has the same version as windows" do
- expect(subject.FileVersion).to start_with(os_version)
+ it "file version has the same major.minor version as windows" do
+ expect(subject.FileVersion).to start_with(os_version.rpartition(".").first)
end
- it "product version has the same version as windows" do
- expect(subject.ProductVersion).to start_with(os_version)
+ it "product version has the same major.minor version as windows" do
+ expect(subject.ProductVersion).to start_with(os_version.rpartition(".").first)
end
it "company is microsoft" do