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