summaryrefslogtreecommitdiff
path: root/spec/functional/win32/versions_spec.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2014-03-28 16:28:21 -0700
committersersut <serdar@opscode.com>2014-03-28 16:28:21 -0700
commit4279951b32148646595def30e0fecee54a5a4eda (patch)
tree743943f593aa6c1e98811b91109cbb5e99fff937 /spec/functional/win32/versions_spec.rb
parent349a0ddab572720bb856afb27112670144c1de05 (diff)
downloadchef-4279951b32148646595def30e0fecee54a5a4eda.tar.gz
Fix Windows 2003 CI issues:
- Make sure that return value is preserved windows_server_2003? - Disable version_specs on 2003 since the API is not supported.
Diffstat (limited to 'spec/functional/win32/versions_spec.rb')
-rw-r--r--spec/functional/win32/versions_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/functional/win32/versions_spec.rb b/spec/functional/win32/versions_spec.rb
index 0b8a65114c..b983b711da 100644
--- a/spec/functional/win32/versions_spec.rb
+++ b/spec/functional/win32/versions_spec.rb
@@ -22,7 +22,7 @@ if Chef::Platform.windows?
require 'ruby-wmi'
end
-describe "Chef::ReservedNames::Win32::Version", :windows_only do
+describe "Chef::ReservedNames::Win32::Version", :windows_only, :not_supported_on_win2k3 do
before do
host = WMI::Win32_OperatingSystem.find(:first)
@@ -57,7 +57,7 @@ describe "Chef::ReservedNames::Win32::Version", :windows_only do
end
end
end
-
+
context "Win32 version object" do
it "should have have one method for each marketing version" do
versions = 0
@@ -88,7 +88,7 @@ describe "Chef::ReservedNames::Win32::Version", :windows_only do
for_each_windows_version { |method_name| @version.send(method_name.to_sym) }
end
end
-
+
context "Windows Operating System version" do
it "should match the version from WMI" do
@current_os_version.should include(@version.marketing_name)