I'm running a cookbook and when I run it on my local machine, all of my ChefSpec tests passed. However, when Jenkins ran them, it failed some of my tests. I checked the version of Chef running on both of my local machine and Jenkins server and they were the same. The message I received was a basic one:
Expected "a directory" with action :create to be in Chef run. Other bash resources: (empty here).
I also have this same test on two platform, redhat linux and aix but only the redhat linux fails. Anyone has any idea why is it happening? Thank you