Permalink
Browse files

Switch nrepl-send-string arguments to fix single fact interactive checks

  • Loading branch information...
1 parent df09c3b commit b9983535951d53041b41b85148794719e35e73bd @chapmanb chapmanb committed Oct 12, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 midje-mode.el
View
@@ -203,8 +203,9 @@ Check that fact and also save it for use of
(buffer-substring-no-properties (mark) (point)))))
(setq last-checked-midje-fact string)
(midje-goto-above-fact)
- (nrepl-send-string string nrepl-buffer-ns
- (nrepl-check-fact-handler (current-buffer)))))
+ (nrepl-send-string string
+ (nrepl-check-fact-handler (current-buffer))
+ nrepl-buffer-ns)))
(defun midje-recheck-last-fact-checked ()
"Used when `point` is on or just after a def* form.
@@ -214,8 +215,9 @@ the last fact checked (by `midje-check-fact-near-point')."
(interactive)
(midje-clear-comments)
(midje-goto-below-code-under-test)
- (nrepl-send-string last-checked-midje-fact nrepl-buffer-ns
- (nrepl-check-fact-handler (current-buffer))))
+ (nrepl-send-string last-checked-midje-fact
+ (nrepl-check-fact-handler (current-buffer))
+ nrepl-buffer-ns))
(defun midje-check-fact ()
"If on or near a Midje fact, check it with

0 comments on commit b998353

Please sign in to comment.