Skip to content

Instantly share code, notes, and snippets.

@gsarjeant
Created October 17, 2014 21:22
Show Gist options
  • Save gsarjeant/e2c121d34acaee4ba246 to your computer and use it in GitHub Desktop.
Save gsarjeant/e2c121d34acaee4ba246 to your computer and use it in GitHub Desktop.
Basic rspec-puppet test
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