I am trying to create a unit test using chefspec, but I can not find the correct way. Here is the piece of chef code
def printMessage(message)
log 'Debuggin' do
message "#{message}"
level :info
action :write
end
end
My question is, what is the correct way to test that chef cookbook method?