projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
All our systems are now at least Debian 9
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
spec
/
acceptance
/
keys_spec.rb
diff --git
a/3rdparty/modules/stdlib/spec/acceptance/keys_spec.rb
b/3rdparty/modules/stdlib/spec/acceptance/keys_spec.rb
old mode 100755
(executable)
new mode 100644
(file)
index
176918e
..
9c4122c
--- a/
3rdparty/modules/stdlib/spec/acceptance/keys_spec.rb
+++ b/
3rdparty/modules/stdlib/spec/acceptance/keys_spec.rb
@@
-1,17
+1,15
@@
-#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
require 'spec_helper_acceptance'
-describe 'keys function', :
unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))
do
+describe 'keys function', :
if => Puppet::Util::Package.versioncmp(Puppet.version, '5.5.0') < 0
do
describe 'success' do
describe 'success' do
- it 'keyss hashes' do
- pp = <<-EOS
+ pp = <<-DOC
$a = {'aaa'=>'bbb','ccc'=>'ddd'}
$o = keys($a)
notice(inline_template('keys is <%= @o.sort.inspect %>'))
$a = {'aaa'=>'bbb','ccc'=>'ddd'}
$o = keys($a)
notice(inline_template('keys is <%= @o.sort.inspect %>'))
- EOS
-
+ DOC
+ it 'keyss hashes' do
apply_manifest(pp, :catch_failures => true) do |r|
apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(
/keys is \["aaa", "ccc"\]/
)
+ expect(r.stdout).to match(
%r{keys is \["aaa", "ccc"\]}
)
end
end
it 'handles non hashes'
end
end
it 'handles non hashes'