Sha256: 335e37f3a5fbc89ac732aaaad308f864927ed48e78165d6a1cebeeae8f9e5c2c

Contents?: true

Size: 485 Bytes

Versions: 5

Compression:

Stored size: 485 Bytes

Contents

require 'spec_helper'

set :os, :family => 'debian'

describe commands.command_class('service').create do
  it { should be_an_instance_of(Specinfra::Command::Debian::Base::Service) }
end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/debian/service_spec.rb
serverspec-2.0.0.beta12 spec/type/debian/service_spec.rb
serverspec-2.0.0.beta11 spec/type/debian/service_spec.rb
serverspec-2.0.0.beta10 spec/type/debian/service_spec.rb
serverspec-2.0.0.beta9 spec/type/debian/service_spec.rb