Sha256: bea5fe6faaacfd2ea6109b4239d099ba5dbd1f1639904905264a575f98673cd6

Contents?: true

Size: 206 Bytes

Versions: 15

Compression:

Stored size: 206 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

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