move castle/home/.homesick_subdir to castle/.homesick_subdir

This commit is contained in:
muratayusuke
2013-06-06 12:39:41 +00:00
parent da0958d455
commit 360e8185f7
3 changed files with 6 additions and 10 deletions

View File

@@ -247,7 +247,7 @@ describe "homesick" do
some_nested_file = home.file('some/nested/file.txt')
homesick.track(some_nested_file.to_s, 'castle_repo')
subdir_file = castle.join(Homesick::SUBDIR_FILENAME)
subdir_file = castle.parent.join(Homesick::SUBDIR_FILENAME)
File.open(subdir_file, 'r') do |f|
f.readline.should == "some/nested\n"
end
@@ -261,7 +261,7 @@ describe "homesick" do
homesick.track(some_nested_file.to_s, 'castle_repo')
homesick.track(other_nested_file.to_s, 'castle_repo')
subdir_file = castle.join(Homesick::SUBDIR_FILENAME)
subdir_file = castle.parent.join(Homesick::SUBDIR_FILENAME)
File.open(subdir_file, 'r') do |f|
f.readlines.size.should == 1
end
@@ -275,7 +275,7 @@ describe "homesick" do
homesick.track(some_nested_file.to_s, 'castle_repo')
homesick.track(nested_parent.to_s, 'castle_repo')
subdir_file = castle.join(Homesick::SUBDIR_FILENAME)
subdir_file = castle.parent.join(Homesick::SUBDIR_FILENAME)
File.open(subdir_file, 'r') do |f|
f.each_line { |line| line.should_not == "some/nested\n" }
end