1 require 'spec_helper_acceptance'
3 describe 'squeeze function' do
7 $a = ["wallless", "laparohysterosalpingooophorectomy", "brrr", "goddessship"]
9 notice(inline_template('squeeze is <%= @o.inspect %>'))
11 it 'squeezes arrays' do
12 apply_manifest(pp1, :catch_failures => true) do |r|
13 expect(r.stdout).to match(%r{squeeze is \["wales", "laparohysterosalpingophorectomy", "br", "godeship"\]})
17 it 'squeezez arrays with an argument'
19 $a = "wallless laparohysterosalpingooophorectomy brrr goddessship"
21 notice(inline_template('squeeze is <%= @o.inspect %>'))
23 it 'squeezes strings' do
24 apply_manifest(pp2, :catch_failures => true) do |r|
25 expect(r.stdout).to match(%r{squeeze is "wales laparohysterosalpingophorectomy br godeship"})
30 $a = "countessship duchessship governessship hostessship"
32 notice(inline_template('squeeze is <%= @o.inspect %>'))
34 it 'squeezes strings with an argument' do
35 apply_manifest(pp3, :catch_failures => true) do |r|
36 expect(r.stdout).to match(%r{squeeze is "counteship ducheship governeship hosteship"})
41 it 'handles no arguments'
42 it 'handles non strings or arrays'