Add test for parens in filenames, and fixed

This commit is contained in:
Trae Robrock
2013-09-18 09:25:09 -07:00
parent 191ce11d8e
commit a7d2d0a3f3
2 changed files with 20 additions and 7 deletions

View File

@@ -397,6 +397,19 @@ describe 'homesick' do
some_rc_file.readlink.should == tracked_file
end
it 'should handle files with parens' do
castle = given_castle('castle_repo')
some_rc_file = home.file 'Default (Linux).sublime-keymap'
homesick.track(some_rc_file.to_s, 'castle_repo')
tracked_file = castle.join('Default (Linux).sublime-keymap')
tracked_file.should exist
some_rc_file.readlink.should == tracked_file
end
it 'should track a file in nested folder structure' do
castle = given_castle('castle_repo')