Module: ChefSpec::API::ErlCallMatchers
- Defined in:
- lib/chefspec/api/erl_call.rb
Overview
Instance Method Summary collapse
-
#run_erl_call(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that an
erl_callresource exists in the Chef run with the action:run.
Instance Method Details
#run_erl_call(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that an erl_call resource exists in the Chef run with the action :run. Given a Chef Recipe that runs “net_adm:names()” as an erl_call:
erl_call 'net_adm:names()' do
action :run
end
The Examples section demonstrates the different ways to test an erl_call resource with ChefSpec.
39 40 41 |
# File 'lib/chefspec/api/erl_call.rb', line 39 def run_erl_call(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:erl_call, :run, resource_name) end |