change 'homesick open' to run '$EDITOR .' instead of '$EDITOR' in castle_dir #142
This commit is contained in:
@@ -712,7 +712,7 @@ describe Homesick::CLI do
|
||||
allow(ENV).to receive(:[]).with('EDITOR').and_return('vim')
|
||||
given_castle 'castle_repo'
|
||||
expect(homesick).to receive('inside').once.with(kind_of(Pathname)).and_yield
|
||||
expect(homesick).to receive('system').once.with('vim')
|
||||
expect(homesick).to receive('system').once.with('vim .')
|
||||
Capture.stdout { homesick.open 'castle_repo' }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user