projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove old cleanup rule
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
spec
/
acceptance
/
swapcase_spec.rb
diff --git
a/3rdparty/modules/stdlib/spec/acceptance/swapcase_spec.rb
b/3rdparty/modules/stdlib/spec/acceptance/swapcase_spec.rb
old mode 100755
(executable)
new mode 100644
(file)
index
9f94c0d
..
1d606f0
--- a/
3rdparty/modules/stdlib/spec/acceptance/swapcase_spec.rb
+++ b/
3rdparty/modules/stdlib/spec/acceptance/swapcase_spec.rb
@@
-1,16
+1,14
@@
-#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
describe 'swapcase function' do
describe 'success' do
require 'spec_helper_acceptance'
describe 'swapcase function' do
describe 'success' do
- it 'works with strings' do
- pp = <<-EOS
+ pp = <<-DOC
$o = swapcase('aBcD')
notice(inline_template('swapcase is <%= @o.inspect %>'))
$o = swapcase('aBcD')
notice(inline_template('swapcase is <%= @o.inspect %>'))
- EOS
-
+ DOC
+ it 'works with strings' do
apply_manifest(pp, :catch_failures => true) do |r|
apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(
/swapcase is "AbCd"/
)
+ expect(r.stdout).to match(
%r{swapcase is "AbCd"}
)
end
end
it 'works with arrays'
end
end
it 'works with arrays'