Tweaks to track. Don't add & commit newly tracked file. Also fix tests to not be spitting out to stdout.
This commit is contained in:
@@ -85,11 +85,6 @@ class Homesick < Thor
|
||||
castle_path = castle_dir(castle)
|
||||
mv absolute_path, castle_path
|
||||
|
||||
inside castle_path do
|
||||
system "git add #{file.basename}"
|
||||
system "git commit -m \"Added #{file.basename}\""
|
||||
end
|
||||
|
||||
inside home_dir do
|
||||
absolute_path = castle_dir(castle) + file.basename
|
||||
home_path = home_dir + file
|
||||
|
||||
@@ -106,6 +106,7 @@ describe Homesick do
|
||||
end
|
||||
|
||||
@homesick.should_receive(:mv).with(some_rc_file, castle_path)
|
||||
@homesick.should_receive(:ln_s).with(castle_path + some_rc_file.basename, some_rc_file)
|
||||
@homesick.track(some_rc_file.to_s, 'castle_repo')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user