diff options
Diffstat (limited to 'code/environments/production/modules/stdlib/spec/acceptance/anchor_spec.rb')
-rw-r--r-- | code/environments/production/modules/stdlib/spec/acceptance/anchor_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/code/environments/production/modules/stdlib/spec/acceptance/anchor_spec.rb b/code/environments/production/modules/stdlib/spec/acceptance/anchor_spec.rb new file mode 100644 index 0000000..3cf0c92 --- /dev/null +++ b/code/environments/production/modules/stdlib/spec/acceptance/anchor_spec.rb @@ -0,0 +1,25 @@ +require 'spec_helper_acceptance' + +describe 'anchor type' do + describe 'success' do + pp = <<-DOC + class anchored { + anchor { 'anchored::begin': } + ~> anchor { 'anchored::end': } + } + + class anchorrefresh { + notify { 'first': } + ~> class { 'anchored': } + ~> anchor { 'final': } + } + + 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 + end + end +end |