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
/
str2saltedsha512_spec.rb
diff --git
a/3rdparty/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb
b/3rdparty/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb
old mode 100755
(executable)
new mode 100644
(file)
index
5f03924
..
4e38e07
--- a/
3rdparty/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb
+++ b/
3rdparty/modules/stdlib/spec/acceptance/str2saltedsha512_spec.rb
@@
-1,16
+1,14
@@
-#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
describe 'str2saltedsha512 function' do
describe 'success' do
require 'spec_helper_acceptance'
describe 'str2saltedsha512 function' do
describe 'success' do
- it 'works with "y"' do
- pp = <<-EOS
+ pp = <<-DOC
$o = str2saltedsha512('password')
notice(inline_template('str2saltedsha512 is <%= @o.inspect %>'))
$o = str2saltedsha512('password')
notice(inline_template('str2saltedsha512 is <%= @o.inspect %>'))
- EOS
-
+ DOC
+ it 'works with "y"' do
apply_manifest(pp, :catch_failures => true) do |r|
apply_manifest(pp, :catch_failures => true) do |r|
- expect(r.stdout).to match(
/str2saltedsha512 is "[a-f0-9]{136}"/
)
+ expect(r.stdout).to match(
%r{str2saltedsha512 is "[a-f0-9]{136}"}
)
end
end
end
end
end
end