Update puppetlabs/stdlib module
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / anchor_spec.rb
old mode 100755 (executable)
new mode 100644 (file)
index 24a9064..3cf0c92
@@ -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