Sha256: 698d5405d5394e6659976649f60de526ce82ff130569c2ba862ca93dd53b63c3

Contents?: true

Size: 999 Bytes

Versions: 17

Compression:

Stored size: 999 Bytes

Contents

require 'spec_helper'

include SpecInfra::Helper::Cmd
include SpecInfra::Helper::Windows

describe windows_hot_fix('DESCRIPTION-OR-KB-ID') do
  it { should be_installed }
  its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION-OR-KB-ID' -hotFixId 'DESCRIPTION-OR-KB-ID') -eq $true" }
end

describe windows_hot_fix('DESCRIPTION') do
  it { should be_installed.with_version('KB-ID') }
  its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION' -hotFixId 'KB-ID') -eq $true" }
end

describe windows_hot_fix('DESCRIPTION_WITH_KB123456789_INLINED') do
  it { should be_installed }
  its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION_WITH_KB123456789_INLINED' -hotFixId 'KB123456789') -eq $true" }
end

describe windows_hot_fix('DESCRIPTION_WITH_SUFFIX_KB123456789') do
  it { should be_installed }
  its(:command) { should == "(FindInstalledHotFix -description 'DESCRIPTION_WITH_SUFFIX_KB123456789' -hotFixId 'KB123456789') -eq $true" }
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
serverspec-1.16.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.15.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.14.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.13.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.12.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.11.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.10.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.9.1 spec/windows/windows_hot_fix_spec.rb
serverspec-1.9.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.8.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.7.1 spec/windows/windows_hot_fix_spec.rb
serverspec-1.7.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.6.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.5.0 spec/windows/windows_hot_fix_spec.rb
serverspec-1.4.2 spec/windows/windows_hot_fix_spec.rb
serverspec-1.4.1 spec/windows/windows_hot_fix_spec.rb
serverspec-1.4.0 spec/windows/windows_hot_fix_spec.rb