Sha256: 6731a8b99410a68378139316b428615cf5153e06bdd2bfcb6e3a6db9c76eb5a6

Contents?: true

Size: 181 Bytes

Versions: 19

Compression:

Stored size: 181 Bytes

Contents

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

Version data entries

19 entries across 19 versions & 1 rubygems

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