f3e79ddcd5
Tests in the new style produces the following documentation output: abs should not eq nil should run abs() and raise an Puppet::ParseError should run abs(-34) and return 34 should run abs("-34") and return 34 should run abs(34) and return 34 should run abs("34") and return 34
26 lines
661 B
Ruby
Executable file
26 lines
661 B
Ruby
Executable file
require 'spec_helper_acceptance'
|
|
|
|
describe 'anchor type', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
|
describe 'success' do
|
|
it 'should effect proper chaining of resources' do
|
|
pp = <<-EOS
|
|
class anchored {
|
|
anchor { 'anchored::begin': }
|
|
~> anchor { 'anchored::end': }
|
|
}
|
|
|
|
class anchorrefresh {
|
|
notify { 'first': }
|
|
~> class { 'anchored': }
|
|
~> anchor { 'final': }
|
|
}
|
|
|
|
include anchorrefresh
|
|
EOS
|
|
|
|
apply_manifest(pp, :catch_failures => true) do |r|
|
|
expect(r.stdout).to match(/Anchor\[final\]: Triggered 'refresh'/)
|
|
end
|
|
end
|
|
end
|
|
end
|