Created
January 2, 2015 20:13
-
-
Save dblessing/d7266db623f7a02cb3a2 to your computer and use it in GitHub Desktop.
ChefSpec test multiple content pieces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'string1', | |
'string2', | |
'string3', | |
'string4' | |
].each do |content| | |
it do | |
is_expected.to render_file('/etc/file') | |
.with_content(content) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment