i want to write chefspec for one of the recipe which has the code to create jenkins user as shown below.
jenkins_user 'test1' do
full_name 'test user'
email 'test1@test.com'
password 'testp'
end
Here "jenkins_user" is not a chef resource. how do i write a chefspec to run a unit test on the recipe.
or if we have anyother way to run a unit test for the recipe kindly let me know.