In my custom resource, I have
homebrew_package 'amazon-ecs-cli'
In spec Test I have
it { is_expected.to install_homebrew_package('amazon-ecs-cli') }
The error I got was:
Failure/Error: it { is_expected.to install_homebrew_package('amazon-ecs-cli') }
expected "homebrew_package[amazon-ecs-cli']" with action :install to be in Chef run. Other homebrew_package resources:
homebrew_package[amazon-ecs-cli']