Information Technology Reference
In-Depth Information
Figure 16-19. Each ChefSpec matcher has detailed examples
Write Your First ChefSpec Test
Let's write some ChefSpec code. We'll use the install_package matcher, as shown in Fig-
ure 16-20 .
The default location for ChefSpec tests are in a spec folder underneath your cookbook root.
Make sure that the apache-test root cookbook directory is the current working directory, and
create a spec directory as follows:
Search WWH ::




Custom Search