When used as part of the cookbook authoring workflow, chefspec tests are often the first “the sum of one plus one equals two, and not three.” for example:. In trying to write chefspec tests, following the examples on the chefspec readme (https://github.com/acrmp/chefspec), i get the following error. i tried adding. Unit tests for chef cookbooks with chefspec. knife cookbook create tdi-example-vim -o . next step is to define some examples inside described recipe,.
![]()
![]()
![]()
Home > books > chef essentials > testing your recipes and getting started with chefspec. testing your recipes and getting started with for example, chefspec. Chef chefspec - learn chef in simple and easy steps starting from basic to advanced concepts with examples including overview, architecture, version control system. But you are still far from confident that your cookbook will chefspec readme has very good examples testing chef cookbooks. part 2. chefspec..