Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / concat / spec / spec_helper_acceptance_local.rb
1 # frozen_string_literal: true
2
3 def setup_test_directory
4   basedir = case os[:family]
5             when 'windows'
6               'c:/concat_test'
7             else
8               '/tmp/concat_test'
9             end
10   pp = <<-MANIFEST
11     file { '#{basedir}':
12       ensure  => directory,
13       force   => true,
14       purge   => true,
15       recurse => true,
16     }
17     file { '#{basedir}/file':
18       content => "file exists\n",
19       force   => true,
20     }
21   MANIFEST
22   apply_manifest(pp)
23   basedir
24 end