X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fanchor_spec.rb;h=fda16742503945185d0f24015d1f62286cd94e35;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hp=24a90647ca3fa1b7c22c4e28b0dec6111a8bb92b;hpb=6963202b4b62c2816655ac9532521b018fdf83bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/acceptance/anchor_spec.rb b/3rdparty/modules/stdlib/spec/acceptance/anchor_spec.rb old mode 100755 new mode 100644 index 24a90647c..fda167425 --- a/3rdparty/modules/stdlib/spec/acceptance/anchor_spec.rb +++ b/3rdparty/modules/stdlib/spec/acceptance/anchor_spec.rb @@ -1,9 +1,8 @@ require 'spec_helper_acceptance' describe 'anchor type' do - describe 'success' do - it 'should effect proper chaining of resources' do - pp = <<-EOS + let(:pp) do + <<-MANIFEST class anchored { anchor { 'anchored::begin': } ~> anchor { 'anchored::end': } @@ -16,11 +15,12 @@ describe 'anchor type' do } include anchorrefresh - EOS + MANIFEST + end - apply_manifest(pp, :catch_failures => true) do |r| - expect(r.stdout).to match(/Anchor\[final\]: Triggered 'refresh'/) - 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