Permalink
Browse files

Fix guardfile_path spec for Windows support

  • Loading branch information...
1 parent b69aa76 commit 9928f80c7690ca723b06fd759c13560f2d9dfb79 Aaron Kalin and Veezus Kreist committed with Hashrocket Workstation May 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/guard/dsl_spec.rb
@@ -22,7 +22,7 @@
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)

0 comments on commit 9928f80

Please sign in to comment.