Created
October 17, 2014 21:22
-
-
Save gsarjeant/e2c121d34acaee4ba246 to your computer and use it in GitHub Desktop.
Basic rspec-puppet test
This file contains 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
require 'spec_helper' | |
describe('test', :type => :class) do | |
describe 'when called with no parameters' do | |
it { | |
should compile | |
should contain_file('/tmp/test').with({ | |
'ensure' => 'file', | |
'owner' => 'root', | |
'group' => 'root', | |
}) | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment