I have created a custom cookbook resource within the resources directory of the cookbook. Can anybody advice how to write unit tests for this? I am using rspec. Below is an example of my custom resource.
resource_name :sample
property :target_path, kind_of: String, name_property: true
action :create do
remote_file "#{target_path}" do
end
end