Skip to content

Commit

Permalink
Use -n// regex instead
Browse files Browse the repository at this point in the history
Some runners add stuff to the test name, this will catch those
  • Loading branch information
arthurnn committed Oct 6, 2015
1 parent fe6b632 commit ffc1b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minitest.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Author: Arthur Neves
;; URL: https://github.com/arthurnn/minitest-emacs
;; Version: 0.9.0
;; Version: 0.9.1
;; Package-Requires: ((dash "1.0.0"))

;; This file is NOT part of GNU Emacs.
Expand Down Expand Up @@ -132,7 +132,7 @@ The current directory is assumed to be the project's root otherwise."
(let* ((str (match-string 1))
(post_command (replace-regexp-in-string " " "_" str)))
(minitest--file-command
(format "-ntest_%s" post_command)))
(format "-n/test_%s/" post_command)))
(error "No test found. Make sure you are on a file that has `def test_foo` or `test \"foo\"`")))

(defun minitest-rerun ()
Expand Down

0 comments on commit ffc1b7e

Please sign in to comment.