From 84fb1d146277236ab919e3612fa89acbd6ca263a Mon Sep 17 00:00:00 2001 From: Nicolas McCurdy Date: Thu, 16 Jan 2014 06:15:37 -0500 Subject: [PATCH] Replace a system call in the spec helper --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 52dbf41..6bfca55 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -33,7 +33,7 @@ RSpec.configure do |config| if subdirs subdir_file = castle.join(Homesick::SUBDIR_FILENAME) subdirs.each do |subdir| - system "echo #{subdir} >> #{subdir_file}" + File.open(subdir_file, 'a') { |file| file.write "\n#{subdir}\n" } end end return castle.directory('home')