describe 'anchor type' do
describe 'success' do
- it 'should effect proper chaining of resources' do
- pp = <<-EOS
+ pp = <<-DOC
class anchored {
anchor { 'anchored::begin': }
~> anchor { 'anchored::end': }
}
include anchorrefresh
- EOS
-
+ DOC
+ it 'effects proper chaining of resources' do
apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(/Anchor\[final\]: Triggered 'refresh'/)
+ expect(r.stdout).to match(%r{Anchor\[final\]: Triggered 'refresh'})
end
end
end