diff --git a/spec/tasks/cloud_foundry_spec.rb b/spec/tasks/cloud_foundry_spec.rb index 694ba2f8..7a924b3d 100644 --- a/spec/tasks/cloud_foundry_spec.rb +++ b/spec/tasks/cloud_foundry_spec.rb @@ -33,9 +33,9 @@ test_settings_file = "#{fixture_path}/cf/settings/multilevel_settings.yml" test_manifest_file = "#{fixture_path}/cf/cf_manifest.yml" - FileUtils.mkdir(Rails.root.join('settings')) - FileUtils.cp(test_settings_file, Rails.root.join('settings','test.yml')) - + settings_dir = Rails.root.join('settings') + settings_dir.mkpath + FileUtils.cp(test_settings_file, settings_dir.join('test.yml')) FileUtils.cp(test_manifest_file, Rails.root.join('manifest.yml')) Rake::Task['config:cf'].execute