Sha256: 68528ce8cab30d06afa5775eecdeb3728a0d70c5a4dcdc7063057879c4e8fd6a

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'

set :os, :family => 'darwin'

describe service('sshd') do
  it { should be_enabled }
end

describe service('invalid-service') do
  it { should_not be_enabled }
end

describe service('sshd') do
  it { should be_enabled.with_level(4) }
end

describe service('invalid-service') do
  it { should_not be_enabled.with_level(4) }
end

describe service('sshd') do
  it { should be_running }
end

describe service('invalid-service') do
  it { should_not be_running }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 spec/type/darwin/service_spec.rb
serverspec-2.0.0.beta18 spec/type/darwin/service_spec.rb
serverspec-2.0.0.beta17 spec/type/darwin/service_spec.rb
serverspec-2.0.0.beta16 spec/type/darwin/service_spec.rb
serverspec-2.0.0.beta15 spec/type/darwin/service_spec.rb
serverspec-2.0.0.beta14 spec/type/darwin/service_spec.rb