class ChefSpec::ChefFormatter

def cookbook_sync_failed(cookbooks, exception)

Called when an error occurs during cookbook sync
def cookbook_sync_failed(cookbooks, exception)
  expecting_exception(exception) do
    description = Chef::Formatters::ErrorMapper.cookbook_sync_failed(cookbooks, exception)
    display_error(description)
  end
end