support nested dir in .homesick_subdir
This commit is contained in:
@@ -121,9 +121,8 @@ describe "homesick" do
|
||||
end
|
||||
end
|
||||
|
||||
context "when .homesick_subdir exists" do
|
||||
context "with '.config' in .homesick_subdir" do
|
||||
let(:castle) { given_castle("glencairn", "glencairn", [".config"]) }
|
||||
|
||||
it "can symlink in sub directory" do
|
||||
dotdir = castle.directory(".config")
|
||||
dotfile = dotdir.file(".some_dotfile")
|
||||
@@ -135,6 +134,20 @@ describe "homesick" do
|
||||
home_dotdir.join(".some_dotfile").readlink.should == dotfile
|
||||
end
|
||||
end
|
||||
|
||||
context "with '.config/appA' in .homesick_subdir" do
|
||||
let(:castle) { given_castle("glencairn", "glencairn", [".config/appA"]) }
|
||||
it "can symlink in nested sub directory" do
|
||||
dotdir = castle.directory(".config").directory("appA")
|
||||
dotfile = dotdir.file(".some_dotfile")
|
||||
|
||||
homesick.symlink("glencairn")
|
||||
|
||||
home_dotdir = home.join(".config").join("appA")
|
||||
home_dotdir.symlink?.should == false
|
||||
home_dotdir.join(".some_dotfile").readlink.should == dotfile
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "list" do
|
||||
|
||||
Reference in New Issue
Block a user