summaryrefslogtreecommitdiffstats
path: root/acceptance/tests/apply/conditionals/should_evaluate_else.rb
blob: 7bdceb1d1ce17da790d2cbd2f7edfe86f4ec209e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
test_name "else clause will be reached if no expressions match"
manifest = %q{
if( 1 == 2) {
  notice('if')
} elsif(2 == 3) {
  notice('elsif')
} else {
  notice('else')
}
}

apply_manifest_on(agents, manifest) do
    fail_test "the else clause did not evaluate" unless stdout.include? 'else'
end