diff --git a/spec/acceptance/backup_spec.rb b/spec/acceptance/backup_spec.rb index f021a55..764bdbb 100644 --- a/spec/acceptance/backup_spec.rb +++ b/spec/acceptance/backup_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper_acceptance' describe 'concat backup parameter' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') context '=> puppet' do before :all do shell("rm -rf #{basedir}") diff --git a/spec/acceptance/concat_spec.rb b/spec/acceptance/concat_spec.rb index 4480cb5..ab6788e 100644 --- a/spec/acceptance/concat_spec.rb +++ b/spec/acceptance/concat_spec.rb @@ -13,9 +13,7 @@ else end describe 'basic concat test' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') shared_examples 'successfully_applied' do |pp| it 'applies the manifest twice with no stderr' do diff --git a/spec/acceptance/empty_spec.rb b/spec/acceptance/empty_spec.rb index 57970dd..ad24415 100644 --- a/spec/acceptance/empty_spec.rb +++ b/spec/acceptance/empty_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper_acceptance' describe 'concat force empty parameter' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') context 'should run successfully' do pp = <<-EOS include concat::setup diff --git a/spec/acceptance/fragment_source_spec.rb b/spec/acceptance/fragment_source_spec.rb index 0ec6d49..d2f0c7b 100644 --- a/spec/acceptance/fragment_source_spec.rb +++ b/spec/acceptance/fragment_source_spec.rb @@ -13,9 +13,7 @@ else end describe 'concat::fragment source' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') context 'should read file fragments from local system' do before(:all) do shell("/bin/echo 'file1 contents' > #{basedir}/file1") diff --git a/spec/acceptance/newline_spec.rb b/spec/acceptance/newline_spec.rb index 9ecf26b..a511e3f 100644 --- a/spec/acceptance/newline_spec.rb +++ b/spec/acceptance/newline_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper_acceptance' describe 'concat ensure_newline parameter' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') context '=> false' do pp = <<-EOS include concat::setup diff --git a/spec/acceptance/order_spec.rb b/spec/acceptance/order_spec.rb index d01cae2..32f85d5 100644 --- a/spec/acceptance/order_spec.rb +++ b/spec/acceptance/order_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper_acceptance' describe 'concat order' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') before(:all) do shell("rm -rf #{basedir} #{default.puppet['vardir']}/concat") shell("mkdir -p #{basedir}") @@ -79,9 +77,7 @@ describe 'concat order' do end # concat order describe 'concat::fragment order' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') before(:all) do shell("rm -rf #{basedir} #{default.puppet['vardir']}/concat") shell("mkdir -p #{basedir}") diff --git a/spec/acceptance/replace_spec.rb b/spec/acceptance/replace_spec.rb index 1a468b7..4893c30 100644 --- a/spec/acceptance/replace_spec.rb +++ b/spec/acceptance/replace_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper_acceptance' describe 'replacement of' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') context 'file' do context 'should not succeed' do before(:all) do diff --git a/spec/acceptance/symbolic_name_spec.rb b/spec/acceptance/symbolic_name_spec.rb index 8481768..384a821 100644 --- a/spec/acceptance/symbolic_name_spec.rb +++ b/spec/acceptance/symbolic_name_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper_acceptance' describe 'symbolic name' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') pp = <<-EOS include concat::setup concat { 'not_abs_path': diff --git a/spec/acceptance/warn_spec.rb b/spec/acceptance/warn_spec.rb index 16947ee..68758fe 100644 --- a/spec/acceptance/warn_spec.rb +++ b/spec/acceptance/warn_spec.rb @@ -1,9 +1,7 @@ require 'spec_helper_acceptance' describe 'concat warn =>' do - let :basedir do - default.tmpdir('concat') - end + basedir = default.tmpdir('concat') context 'true should enable default warning message' do pp = <<-EOS include concat::setup