(FM-4563) fix tmpdir to be shared across examples

This commit is contained in:
David Schmitt 2016-01-19 10:45:25 +00:00
parent d89062faff
commit 95841d3a8c

View file

@ -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',