- it 'applies the manifest twice no stderr' do
- apply_manifest(pp, :catch_failures => true)
- apply_manifest(pp, :catch_changes => true)
- end
-
- describe file("#{basedir}/file") do
- it { should be_file }
- its(:content) { should match /new contents/ }
- end
- describe file("#{basedir}/file.backup") do
- it { should be_file }
- its(:content) { should match /old contents/ }
+ it 'applies the manifest twice no stderr' do
+ idempotent_apply(pp)
+ expect(file("#{@basedir}/file")).to be_file
+ expect(file("#{@basedir}/file").content).to match %r{backup extension}
+ expect(file("#{@basedir}/file.backup")).to be_file
+ expect(file("#{@basedir}/file.backup").content).to match %r{new contents}