1 #! /usr/bin/env ruby -S rspec
3 require 'puppet_spec/compiler'
5 describe "anchorrefresh" do
6 include PuppetSpec::Compiler
9 apply_compiled_manifest(<<-ANCHORCLASS)
11 anchor { 'anchored::begin': }
12 ~> anchor { 'anchored::end': }
17 ~> class { 'anchored': }
18 ~> anchor { 'final': }
25 it 'propagates events through the anchored class' do
26 resource = transaction.resource_status('Anchor[final]')
28 expect(resource.restarted).to eq(true)