Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / anchor_spec.rb
index 3cf0c92..fda1674 100644 (file)
@@ -1,8 +1,8 @@
 require 'spec_helper_acceptance'
 
 describe 'anchor type' do
-  describe 'success' do
-    pp = <<-DOC
+  let(:pp) do
+    <<-MANIFEST
       class anchored {
         anchor { 'anchored::begin': }
         ~> anchor { 'anchored::end': }
@@ -15,11 +15,12 @@ describe 'anchor type' do
       }
 
       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
+    MANIFEST
+  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