Sha256: dc88b58ccb80d13a27664da81ecc9df31e80766368df665001ace62518cd6ae3
Contents?: true
Size: 668 Bytes
Versions: 6
Compression:
Stored size: 668 Bytes
Contents
#! /usr/bin/env ruby -S rspec require 'spec_helper' require 'puppet_spec/compiler' describe "anchorrefresh" do include PuppetSpec::Compiler let :transaction do apply_compiled_manifest(<<-ANCHORCLASS) class anchored { anchor { 'anchored::begin': } ~> anchor { 'anchored::end': } } class anchorrefresh { notify { 'first': } ~> class { 'anchored': } ~> anchor { 'final': } } include anchorrefresh ANCHORCLASS end it 'propagates events through the anchored class' do resource = transaction.resource_status('Anchor[final]') expect(resource.restarted).to eq(true) end end
Version data entries
6 entries across 6 versions & 1 rubygems