Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit tests should cover file content #2

Closed
jhoblitt opened this issue Sep 22, 2013 · 1 comment
Closed

unit tests should cover file content #2

jhoblitt opened this issue Sep 22, 2013 · 1 comment

Comments

@jhoblitt
Copy link
Owner

At present, the unit tests are not checking the content of the generated configuration files. This should be added to catch variable handling errors and ERB template regressions.

@jhoblitt
Copy link
Owner Author

@NoodlesNZ Adding unit test coverage of template variable interpolation as you change them may be useful. There's examples of a few different ways of checking file content in here: https://github.com/jhoblitt/puppet-smartd/blob/master/spec/unit/classes/smartd_spec.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant