Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.775 kb
require 'spec_helper'
describe 'sysctl::before' do
let(:title) { 'sysctl::before' }
let(:params) { { :value => "title" } }
it "Should raise an error about needing the sysctl::common class" do
expect { should create_notify("message-title")\
.with_message("This should print if the class is here first.") }\
.to raise_error(Puppet::Error, /Could not find resource 'Class\[Sysctl::Common\]/)
end
end
describe 'sysctl::before' do
let(:title) { 'test define' }
let(:pre_condition) {
[ '# we need sysctl common',
'class {"sysctl::common":}' ] }
let(:params) { { :value => "title" } }
it { should create_resource("sysctl::before", 'test define')\
.with_param(:value, "title") }
it { should include_class("sysctl::common") }
end
Jump to Line
Something went wrong with that request. Please try again.