summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-07 11:14:12 -0700
committerGitHub <noreply@github.com>2020-04-07 11:14:12 -0700
commit0544a6c3715748086e3b816ed9d9b499930fdee0 (patch)
treea679249833465ddb85ffad8b3e72fb6abb88125d
parenta46d9097cc5b6b1a32951ca609fbb58ab9e1dd17 (diff)
parent93ee2d39a7ab1f213ffbcc5996ba7abcfbe58606 (diff)
downloadchef-0544a6c3715748086e3b816ed9d9b499930fdee0.tar.gz
Merge pull request #9620 from chef/btm/14-windows-func-version-info
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 b5570732a0..f401d5ecfa 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