From 0fcce91d69bcb6c84182394cba54cf47487a8bdd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 15 Jan 2014 11:10:38 -0800 Subject: [PATCH] core: fix more cases where ".path" was being called on strings --- test/unit/support/isolated_environment.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/support/isolated_environment.rb b/test/unit/support/isolated_environment.rb index 81810dcad..4f8e7552b 100644 --- a/test/unit/support/isolated_environment.rb +++ b/test/unit/support/isolated_environment.rb @@ -103,10 +103,10 @@ module Unit @_box2_file_temp << td_dest # The source as a Pathname, which is easier to work with - source = Pathname.new(td_source.path) + source = Pathname.new(td_source) # The destination file - result = Pathname.new(td_dest.path).join("temporary.box") + result = Pathname.new(td_dest).join("temporary.box") # Put a "box.ovf" in there. source.join("box.ovf").open("w") do |f| @@ -148,10 +148,10 @@ module Unit @_box2_file_temp << td_dest # The source as a Pathname, which is easier to work with - source = Pathname.new(td_source.path) + source = Pathname.new(td_source) # The destination file - result = Pathname.new(td_dest.path).join("temporary.box") + result = Pathname.new(td_dest).join("temporary.box") # Put the metadata.json in here. source.join("metadata.json").open("w") do |f|