Sha256: cc7bb39db9a756e138d13f309fc8261f3e2fab62d726a433099248c6b8ad510f

Contents?: true

Size: 203 Bytes

Versions: 15

Compression:

Stored size: 203 Bytes

Contents

RSpec::Matchers.define :be_enforcing do
  match do |actual|
    if subject.respond_to?(:enforcing?)
      subject.enforcing?
    else
      backend.check_selinux(example, 'enforcing')
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
serverspec-0.5.3 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.5.2 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.5.1 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.5.0 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.14 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.13 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.12 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.11 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.10 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.9 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.8 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.7 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.6 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.5 lib/serverspec/matchers/be_enforcing.rb
serverspec-0.4.4 lib/serverspec/matchers/be_enforcing.rb