X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fanchor_spec.rb;h=3cf0c929e8b55b5cd5ceff9c4a6fd8163c997331;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=24a90647ca3fa1b7c22c4e28b0dec6111a8bb92b;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;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..3cf0c929e --- a/3rdparty/modules/stdlib/spec/acceptance/anchor_spec.rb +++ b/3rdparty/modules/stdlib/spec/acceptance/anchor_spec.rb @@ -2,8 +2,7 @@ require 'spec_helper_acceptance' 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': } @@ -16,10 +15,10 @@ describe 'anchor type' do } 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