From 95841d3a8c4e2c0995b8fa74e5e0e0db25165325 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Tue, 19 Jan 2016 10:45:25 +0000 Subject: [PATCH] (FM-4563) fix tmpdir to be shared across examples --- spec/acceptance/mysql_server_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/acceptance/mysql_server_spec.rb b/spec/acceptance/mysql_server_spec.rb index 8589ea2..06ea0ba 100644 --- a/spec/acceptance/mysql_server_spec.rb +++ b/spec/acceptance/mysql_server_spec.rb @@ -2,12 +2,14 @@ require 'spec_helper_acceptance' describe 'mysql class' do describe 'advanced config' do - let(:tmpdir) { default.tmpdir('mysql') } + before(:all) do + @tmpdir = default.tmpdir('mysql') + end let(:pp) do <<-EOS class { 'mysql::server': - config_file => '#{tmpdir}/my.cnf', - includedir => '#{tmpdir}/include', + config_file => '#{@tmpdir}/my.cnf', + includedir => '#{@tmpdir}/include', manage_config_file => 'true', override_options => { 'mysqld' => { 'key_buffer_size' => '32M' }}, package_ensure => 'present',