module Cheffish::RSpec::ChefRunSupport
Public Class Methods
extended(klass)
click to toggle source
# File lib/cheffish/rspec/chef_run_support.rb, line 15 def self.extended(klass) klass.class_eval do include ChefRunSupportInstanceMethods end end
Public Instance Methods
when_the_chef_12_server(*args, **options, &block)
click to toggle source
# File lib/cheffish/rspec/chef_run_support.rb, line 21 def when_the_chef_12_server(*args, **options, &block) if Gem::Version.new(ChefZero::VERSION) >= Gem::Version.new("3.1") when_the_chef_server(*args, osc_compat: false, single_org: false, **options, &block) end end
with_converge(&recipe)
click to toggle source
# File lib/cheffish/rspec/chef_run_support.rb, line 27 def with_converge(&recipe) before :each do r = recipe(&recipe) r.converge end end