Sha256: 7ed17576509b96841f9b26527e0689bcf11696425e6ab780f12d192d1a78a2b4
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Cmd RSpec.configure do |c| c.os = 'Windows' end describe service('Test Service') do it { should be_enabled } its(:command) { should eq "(FindService -name 'Test Service').StartMode -eq 'Auto'" } end describe service('invalid-service') do it { should_not be_enabled } end describe service('Test Service') do it { should be_running } its(:command) { should eq "(FindService -name 'Test Service').State -eq 'Running'" } end describe service('invalid-daemon') do it { should_not be_running } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.10.6 | spec/windows/service_spec.rb |
serverspec-0.10.5 | spec/windows/service_spec.rb |
serverspec-0.10.4 | spec/windows/service_spec.rb |