Fix guardfile_path spec for Windows support

This commit is contained in:
Aaron Kalin and Veezus Kreist 2011-05-25 13:32:56 -05:00 committed by Hashrocket Workstation
parent b69aa7677c
commit 9928f80c76

View File

@ -22,7 +22,7 @@ describe Guard::Dsl do
describe ".guardfile_path" do describe ".guardfile_path" do
let(:local_path) { File.join(Dir.pwd, 'Guardfile') } 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 before do
File.stub(:exist? => false) File.stub(:exist? => false)