Created
March 5, 2019 09:57
-
-
Save sajoku/d6df0ba7be9adbbb112a955506d5159d to your computer and use it in GitHub Desktop.
Local vimrc to run rails test inside docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Sometimes I want to run stuff in a docker-container like rails tests. With this local .vimrc that's configurable per project | |
" This 'overrides' the rails executable command and replaces it with docker-compose. | |
" Drawback is that it takes a bit of time to run docker | |
let g:test#ruby#rails#executable = 'docker-compose run web bin/rails test' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment