Skip to content

Commit

Permalink
Merge pull request #1 from chapmanb/nrepl
Browse files Browse the repository at this point in the history
Switch nrepl-send-string arguments to match current nrepl.el
  • Loading branch information
bonega committed Oct 12, 2012
2 parents df09c3b + b998353 commit c1fa6ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions midje-mode.el
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit c1fa6ee

Please sign in to comment.