0.5
app-cordova
debian/bullseye
debian/jessie
|
Last change
on this file since 04de4a4 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:
1.1 KB
|
| Line | |
|---|
| 1 | #! /usr/bin/env ruby -S rspec
|
|---|
| 2 | require 'spec_helper_acceptance'
|
|---|
| 3 |
|
|---|
| 4 | describe 'upcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
|---|
| 5 | describe 'success' do
|
|---|
| 6 | it 'upcases arrays' do
|
|---|
| 7 | pp = <<-EOS
|
|---|
| 8 | $a = ["wallless", "laparohysterosalpingooophorectomy", "brrr", "goddessship"]
|
|---|
| 9 | $o = upcase($a)
|
|---|
| 10 | notice(inline_template('upcase is <%= @o.inspect %>'))
|
|---|
| 11 | EOS
|
|---|
| 12 |
|
|---|
| 13 | apply_manifest(pp, :catch_failures => true) do |r|
|
|---|
| 14 | expect(r.stdout).to match(/upcase is \["WALLLESS", "LAPAROHYSTEROSALPINGOOOPHORECTOMY", "BRRR", "GODDESSSHIP"\]/)
|
|---|
| 15 | end
|
|---|
| 16 | end
|
|---|
| 17 | it 'upcases strings' do
|
|---|
| 18 | pp = <<-EOS
|
|---|
| 19 | $a = "wallless laparohysterosalpingooophorectomy brrr goddessship"
|
|---|
| 20 | $o = upcase($a)
|
|---|
| 21 | notice(inline_template('upcase is <%= @o.inspect %>'))
|
|---|
| 22 | EOS
|
|---|
| 23 |
|
|---|
| 24 | apply_manifest(pp, :catch_failures => true) do |r|
|
|---|
| 25 | expect(r.stdout).to match(/upcase is "WALLLESS LAPAROHYSTEROSALPINGOOOPHORECTOMY BRRR GODDESSSHIP"/)
|
|---|
| 26 | end
|
|---|
| 27 | end
|
|---|
| 28 | end
|
|---|
| 29 | describe 'failure' do
|
|---|
| 30 | it 'handles no arguments'
|
|---|
| 31 | it 'handles non strings or arrays'
|
|---|
| 32 | end
|
|---|
| 33 | end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.