1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'swapcase function' do
6 it 'works with strings' do
9 notice(inline_template('swapcase is <%= @o.inspect %>'))
12 apply_manifest(pp, :catch_failures => true) do |r|
13 expect(r.stdout).to match(/swapcase is "AbCd"/)
16 it 'works with arrays'
19 it 'handles no arguments'
20 it 'handles non arrays or strings'