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
/
max_spec.rb
diff --git
a/3rdparty/modules/stdlib/spec/acceptance/max_spec.rb
b/3rdparty/modules/stdlib/spec/acceptance/max_spec.rb
old mode 100755
(executable)
new mode 100644
(file)
index
3caa813
..
3958a70
--- a/
3rdparty/modules/stdlib/spec/acceptance/max_spec.rb
+++ b/
3rdparty/modules/stdlib/spec/acceptance/max_spec.rb
@@
-1,16
+1,14
@@
-#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
require 'spec_helper_acceptance'
-describe 'max function' do
+describe 'max function'
, :if => Puppet::Util::Package.versioncmp(return_puppet_version, '6.0.0') < 0
do
describe 'success' do
describe 'success' do
- it 'maxs arrays' do
- pp = <<-EOS
+ pp = <<-DOC
$o = max("the","public","art","galleries")
notice(inline_template('max is <%= @o.inspect %>'))
$o = max("the","public","art","galleries")
notice(inline_template('max is <%= @o.inspect %>'))
- EOS
-
+ DOC
+ it 'maxs arrays' do
apply_manifest(pp, :catch_failures => true) do |r|
apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(
/max is "the"/
)
+ expect(r.stdout).to match(
%r{max is "the"}
)
end
end
end
end
end
end