Sha256: 6c6d2b7ef9dd2d920796ac47740d164b726054c42dcb6c1725df9857d1b4aa42

Contents?: true

Size: 493 Bytes

Versions: 6

Compression:

Stored size: 493 Bytes

Contents

require 'spec_helper'

set :os, :family => 'smartos'

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_running }
end

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

describe service('sshd') do
  it { should have_property :foo => 'bar' }
end

describe service('invalid-service') do
  it { should_not have_property :foo => 'bar' }
end

Version data entries

6 entries across 6 versions & 1 rubygems

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