test(pull): add failing pull --all parity coverage
This commit is contained in:
@@ -112,3 +112,18 @@ func (s *PullSuite) TestPull_MissingCastleReturnsError() {
|
||||
err := s.app.Pull("missing")
|
||||
require.Error(s.T(), err)
|
||||
}
|
||||
|
||||
func (s *PullSuite) TestPullAll_UpdatesAllCastlesFromOrigin() {
|
||||
remoteA, cloneA := s.createRemoteWithClone("alpha")
|
||||
remoteB, cloneB := s.createRemoteWithClone("zeta")
|
||||
s.addRemoteCommit(remoteA, "alpha")
|
||||
s.addRemoteCommit(remoteB, "zeta")
|
||||
|
||||
require.NoError(s.T(), s.app.PullAll())
|
||||
require.FileExists(s.T(), filepath.Join(cloneA, "home", ".zshrc"))
|
||||
require.FileExists(s.T(), filepath.Join(cloneB, "home", ".zshrc"))
|
||||
}
|
||||
|
||||
func (s *PullSuite) TestPullAll_NoCastlesIsNoop() {
|
||||
require.NoError(s.T(), s.app.PullAll())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user