Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / str2saltedsha512_spec.rb
old mode 100755 (executable)
new mode 100644 (file)
index 5f03924..4e38e07
@@ -1,16 +1,14 @@
-#! /usr/bin/env ruby -S rspec
 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 %>'))
-      EOS
-
+    DOC
+    it 'works with "y"' do
       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