Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / concat / spec / spec_helper_acceptance_local.rb
diff --git a/3rdparty/modules/concat/spec/spec_helper_acceptance_local.rb b/3rdparty/modules/concat/spec/spec_helper_acceptance_local.rb
new file mode 100644 (file)
index 0000000..a59bbcd
--- /dev/null
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+def setup_test_directory
+  basedir = case os[:family]
+            when 'windows'
+              'c:/concat_test'
+            else
+              '/tmp/concat_test'
+            end
+  pp = <<-MANIFEST
+    file { '#{basedir}':
+      ensure  => directory,
+      force   => true,
+      purge   => true,
+      recurse => true,
+    }
+    file { '#{basedir}/file':
+      content => "file exists\n",
+      force   => true,
+    }
+  MANIFEST
+  apply_manifest(pp)
+  basedir
+end