Closed tuahk closed 9 years ago
This is a nice refactor. I would consider renaming recipes/init.rb to recipes/service.rb to use a more generic term.
:+1:
I renamed source_spec.rb to default_spec.rb and put all the tests in there.
It would be cleaner if we had separate spec files for each recipe but chefspec doesn’t find prometheus service from other recipes since we include all to default. There probably is a way around this but I don't yet know about it.
Sorry about the rubocop commits but for some reason rubocop doesn't complain about them on my computer. I have to look in to it.
The purpose of this PR is to suggest a new way to arrange our recipes.
This will obviously break chefspecs but I just wanted to run this through you guys first. If I get green light for this then I start making changes to chefspec and update this PR to include those.
This PR also starts work on binary.rb and adds some serverspec tests for it.