Module: ChefSpec::API::RenderFileMatchers
- Defined in:
- lib/chefspec/api/render_file.rb
Overview
Instance Method Summary collapse
-
#render_file(path) ⇒ ChefSpec::Matchers::RenderFileMatcher
Assert that a file is rendered by the Chef run.
Instance Method Details
#render_file(path) ⇒ ChefSpec::Matchers::RenderFileMatcher
Assert that a file is rendered by the Chef run. This matcher works for template, file, and cookbook_file resources. The content from the resource must be convertable to a string; verifying the content of a binary file is not permissible at this time.
28 29 30 |
# File 'lib/chefspec/api/render_file.rb', line 28 def render_file(path) ChefSpec::Matchers::RenderFileMatcher.new(path) end |