capistrano-git-with-submodules
capistrano-git-with-submodules copied to clipboard
Write tests
there is no unit tests =(
I was trying to consider this in my PR, however the main obstacle seems to be mocking, or at least providing a stable, unchanging example remote mock repo that doesn't change. In actual fact I have Googled for something and all that returns are API mocking libraries.
Edit: Looks like you don't need to mock a git repo, you can do it all locally
So, is it known:
- Whether git uses some kind of REST API
- Can there be a VPS set up to allow a git repository that never changes? One candidate is AWS codecommit, but this is likely paid. This is likely a more robust solution
Secondary questions:
- How would the rakefile test read the remote? Would there be a git init on the
test/directory with submodule config for the VPS added? Then we would be committing refs and hashes I believe 😬 Could instead add reference to setting up a separate dir as the test remote repo and symlink?