Skip to content

Commit

Permalink
(MODULES-444) Acceptance test for primitives
Browse files Browse the repository at this point in the history
`concat` should be able to concat arrays and primitives
  • Loading branch information
Peter Souter committed Dec 4, 2014
1 parent ed192a0 commit 7c570f7
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 @@ -12,6 +12,17 @@
}
EOS

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

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

0 comments on commit 7c570f7

Please sign in to comment.