Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / join_keys_to_values_spec.rb
old mode 100755 (executable)
new mode 100644 (file)
index ae6947e..a9f30e3
@@ -1,18 +1,16 @@
-#! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
 describe 'join_keys_to_values function' do
   describe 'success' do
-    it 'join_keys_to_valuess hashes' do
-      pp = <<-EOS
+    pp = <<-DOC
       $a = {'aaa'=>'bbb','ccc'=>'ddd'}
       $b = ':'
       $o = join_keys_to_values($a,$b)
       notice(inline_template('join_keys_to_values is <%= @o.sort.inspect %>'))
-      EOS
-
+    DOC
+    it 'join_keys_to_valuess hashes' do
       apply_manifest(pp, :catch_failures => true) do |r|
-        expect(r.stdout).to match(/join_keys_to_values is \["aaa:bbb", "ccc:ddd"\]/)
+        expect(r.stdout).to match(%r{join_keys_to_values is \["aaa:bbb", "ccc:ddd"\]})
       end
     end
     it 'handles non hashes'