Add ability to edit rspec command before running

This commit is contained in:
Jeremy Dormitzer 2024-09-06 19:29:18 -06:00
parent e1be78e05f
commit 5f11045ae0

View File

@ -27,6 +27,12 @@
(use-package rspec-mode
:hook (dired-mode . rspec-dired-mode)
:config
(defun rspec-compile-command-filter-return (output)
(if current-prefix-arg
(read-string "Command: " output)
output))
(advice-add 'rspec-compile-command :filter-return #'rspec-compile-command-filter-return)
:custom
(rspec-use-opts-file-when-available nil))