Fix guardfile_path spec for Windows support
This commit is contained in:
parent
b69aa7677c
commit
9928f80c76
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user