debian/bullseye
debian/jessie
|
Last change
on this file since 8c9881e was 1c22429, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago |
- gnuboat_epd adds the apt repository from gnuboat to install epd-fuse package
|
-
Property mode
set to
100755
|
|
File size:
642 bytes
|
| Line | |
|---|
| 1 | #! /usr/bin/env ruby -S rspec
|
|---|
| 2 | require 'spec_helper_acceptance'
|
|---|
| 3 |
|
|---|
| 4 | describe 'join function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
|---|
| 5 | describe 'success' do
|
|---|
| 6 | it 'joins arrays' do
|
|---|
| 7 | pp = <<-EOS
|
|---|
| 8 | $a = ['aaa','bbb','ccc']
|
|---|
| 9 | $b = ':'
|
|---|
| 10 | $c = 'aaa:bbb:ccc'
|
|---|
| 11 | $o = join($a,$b)
|
|---|
| 12 | if $o == $c {
|
|---|
| 13 | notify { 'output correct': }
|
|---|
| 14 | }
|
|---|
| 15 | EOS
|
|---|
| 16 |
|
|---|
| 17 | apply_manifest(pp, :catch_failures => true) do |r|
|
|---|
| 18 | expect(r.stdout).to match(/Notice: output correct/)
|
|---|
| 19 | end
|
|---|
| 20 | end
|
|---|
| 21 | it 'handles non arrays'
|
|---|
| 22 | end
|
|---|
| 23 | describe 'failure' do
|
|---|
| 24 | it 'handles improper argument counts'
|
|---|
| 25 | end
|
|---|
| 26 | end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.