Sha256: e9169c6c8104d7faa30a6eeb4d643231af7077b3ad6b985ea0f20cc30e4e5751

Contents?: true

Size: 190 Bytes

Versions: 5

Compression:

Stored size: 190 Bytes

Contents

RSpec::Matchers.define :be_disabled do
  match do |subject|
    if subject.respond_to?(:disabled?)
      subject.disabled?
    else
      backend.check_selinux('disabled')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-0.5.8 lib/serverspec/matchers/be_disabled.rb
serverspec-0.5.7 lib/serverspec/matchers/be_disabled.rb
serverspec-0.5.6 lib/serverspec/matchers/be_disabled.rb
serverspec-0.5.5 lib/serverspec/matchers/be_disabled.rb
serverspec-0.5.4 lib/serverspec/matchers/be_disabled.rb