From 04238cb0400c072c8b5dbbecbab9cf01d9f2cc72 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Tue, 1 Mar 2016 20:13:36 -0800 Subject: [PATCH] Use heredoc for multiline string --- spec/support/test_app.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/support/test_app.rb b/spec/support/test_app.rb index 894c0893..9e1dab97 100644 --- a/spec/support/test_app.rb +++ b/spec/support/test_app.rb @@ -9,7 +9,7 @@ module TestApp end def default_config - %{ + <<-CONFIG set :deploy_to, '#{deploy_to}' set :repo_url, 'git://github.com/capistrano/capistrano.git' set :branch, 'master' @@ -18,7 +18,7 @@ module TestApp set :linked_files, #{linked_files} set :linked_dirs, #{linked_dirs} set :format_options, log_file: nil - } + CONFIG end def linked_files @@ -164,10 +164,10 @@ module TestApp def move_configuration_to_custom_location(location) prepend_to_capfile( - %{ + <<-CONFIG set :stage_config_path, "app/config/deploy" set :deploy_config_path, "app/config/deploy.rb" - } + CONFIG ) location = test_app_path.join(location)