Using Fake Cookbooks for Writing ChefSpec Tests for your Custom Chef Resources (3 mins read).

A directory structure I've found quite useful for writing ChefSpec tests for custom resources, by creating a fake cookbook within the cookbook you're testing.