Skip to content

Commit

Permalink
(MODULES-444) Acceptance for multiple arrays
Browse files Browse the repository at this point in the history
Acceptance test to take multiple arrays for concatenation
  • Loading branch information
Peter Souter committed Dec 4, 2014
1 parent 7c570f7 commit 5e49c50
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/acceptance/concat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
}
EOS

apply_manifest(pp, :catch_failures => true)
end
it 'should concat multiple arrays to one' do
pp = <<-EOS
$output = concat(['1','2','3'],['4','5','6'],['7','8','9'])
validate_array($output)
if size($output) != 6 {
fail("${output} should have 9 elements.")
}
EOS

apply_manifest(pp, :catch_failures => true)
end
end
Expand Down

0 comments on commit 5e49c50

Please sign in to comment.