Sha256: 85d8b411b8a034bf39e0224644822d7b5afdeff617e736a5f1e6d38c57472a4a

Contents?: true

Size: 172 Bytes

Versions: 5

Compression:

Stored size: 172 Bytes

Contents

RSpec::Matchers.define :be_enabled do
  match do |name|
    if name.respond_to?(:enabled?)
      name.enabled?
    else
      backend.check_enabled(name)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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