Displaying 1 result from an estimated 1 matches for "contain_notify".
2012 Sep 21
0
rspec testing - what am I missing?
...─ hosts
└── spec_helper.rb
$ cat manifests/init.pp
class testthis {
notify{''this notify is alive'': }
}
$ cat spec/classes/testthis_spec.rb
require ''rspec-puppet''
describe "testthis" do
let(:node) {''fake''}
it { should contain_notify(''this notify is
alive'').with_content(/notify is alive/)}
end
$ rake spec
/usr/bin/ruby1.8 -S rspec spec/classes/testthis_spec.rb
F
Failures:
1) testthis
Failure/Error: it { should contain_notify(''this notify is
alive'').with_content(/notify is alive/)}...