summaryrefslogtreecommitdiffstats
path: root/acceptance/tests/apply/conditionals/should_evaluate_empty.rb
blob: 85b0792b42327709e96e2b54c10a9ce232dfd990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
test_name "ensure that undefined variables evaluate as false"
manifest = %q{
if $undef_var {
} else {
  notice('undef')
}
}

apply_manifest_on(agents, manifest) do
    fail_test "did not evaluate as expected" unless stdout.include? 'undef'
end