Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / anchor_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'anchor type' do
4   describe 'success' do
5     pp = <<-DOC
6       class anchored {
7         anchor { 'anchored::begin': }
8         ~> anchor { 'anchored::end': }
9       }
10
11       class anchorrefresh {
12         notify { 'first': }
13         ~> class { 'anchored': }
14         ~> anchor { 'final': }
15       }
16
17       include anchorrefresh
18     DOC
19     it 'effects proper chaining of resources' do
20       apply_manifest(pp, :catch_failures => true) do |r|
21         expect(r.stdout).to match(%r{Anchor\[final\]: Triggered 'refresh'})
22       end
23     end
24   end
25 end