From 711aa3402b6f3a85a53471d227b27abd9b034343 Mon Sep 17 00:00:00 2001 From: Natalie Tay Date: Fri, 13 Jan 2017 14:53:56 +0800 Subject: [PATCH] Refactoring Signed-off-by: Gamaliel Amaudruz --- spec/tasks/cloud_foundry_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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