Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / swapcase_spec.rb
old mode 100755 (executable)
new mode 100644 (file)
index b7894fb..1d606f0
@@ -1,16 +1,14 @@
-#! /usr/bin/env ruby -S rspec
 require 'spec_helper_acceptance'
 
-describe 'swapcase function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+describe 'swapcase function' do
   describe 'success' do
-    it 'works with strings' do
-      pp = <<-EOS
+    pp = <<-DOC
       $o = swapcase('aBcD')
       notice(inline_template('swapcase is <%= @o.inspect %>'))
-      EOS
-
+    DOC
+    it 'works with strings' do
       apply_manifest(pp, :catch_failures => true) do |r|
-        expect(r.stdout).to match(/swapcase is "AbCd"/)
+        expect(r.stdout).to match(%r{swapcase is "AbCd"})
       end
     end
     it 'works with arrays'