From 9928f80c7690ca723b06fd759c13560f2d9dfb79 Mon Sep 17 00:00:00 2001 From: Aaron Kalin and Veezus Kreist Date: Wed, 25 May 2011 13:32:56 -0500 Subject: [PATCH] Fix guardfile_path spec for Windows support --- spec/guard/dsl_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/guard/dsl_spec.rb b/spec/guard/dsl_spec.rb index b15ac84..c46c002 100644 --- a/spec/guard/dsl_spec.rb +++ b/spec/guard/dsl_spec.rb @@ -22,7 +22,7 @@ describe Guard::Dsl do describe ".guardfile_path" do let(:local_path) { File.join(Dir.pwd, 'Guardfile') } - let(:user_path) { File.join(ENV["HOME"], 'Guardfile') } + let(:user_path) { File.expand_path(File.join("~", 'Guardfile')) } before do File.stub(:exist? => false)