require 'spec_helper_acceptance'
describe 'anchor type' do
- describe 'success' do
- pp = <<-DOC
+ let(:pp) do
+ <<-MANIFEST
class anchored {
anchor { 'anchored::begin': }
~> anchor { 'anchored::end': }
}
include anchorrefresh
- DOC
- it 'effects proper chaining of resources' do
- apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(%r{Anchor\[final\]: Triggered 'refresh'})
- end
+ MANIFEST
+ end
+
+ it 'applies manifest, anchors resources in correct order' do
+ apply_manifest(pp) do |r|
+ expect(r.stdout).to match(%r{Anchor\[final\]: Triggered 'refresh'})
end
end
end