Use --no-color option of rspec

This commit is contained in:
Frederik Hanghøj Iversen 2020-02-11 09:51:33 +01:00
parent a31cd7e6a9
commit f263264a77

9
zdi.el
View file

@ -13,14 +13,7 @@
"Get the project-relative path of the current buffer." "Get the project-relative path of the current buffer."
(file-relative-name buffer-file-name (projectile-project-root))) (file-relative-name buffer-file-name (projectile-project-root)))
(defvar zdi-build-command-format (defvar zdi-build-command-format "docker exec -it help_center bundle exec rspec --no-color %s")
"source ~/git/zendesk/zdi/dockmaster/zdi.sh
function strip-colors() {
gsed -r \"s/\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g\"
}
zdi help_center -d run bundle exec rspec %s | strip-colors
")
(defun zdi-set-compile-command () (defun zdi-set-compile-command ()
"Set the command used to compile your project to run rspec through zdi." "Set the command used to compile your project to run rspec through zdi."