Sha256: 415efbfcdcc6365d4cdb21d37bd8bc1ee314620defb8966ef7ab0baa6e615487

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

# encoding: utf-8

if defined?(ChefSpec)
  ChefSpec::Runner.define_runner_method(:ohai_hint)

  def create_ohai_hint(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:ohai_hint, :create, resource)
  end

  def delete_ohai_hint(resource)
    ChefSpec::Matchers::ResourceMatcher.new(:ohai_hint, :delete, resource)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/ohai/libraries/matchers.rb
from-scratch-0.6.0 cookbooks/ohai/libraries/matchers.rb
from-scratch-0.5.0 cookbooks/ohai/libraries/matchers.rb