Skip to content

Commit

Permalink
Simplify test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Aug 10, 2016
1 parent 3e175e4 commit 5b0de03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions test/loop-test.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(require 'ert)
(require 'loop)

(ert-deftest loop-test-while ()
"Test basic `loop-while' usage."
Expand Down
14 changes: 0 additions & 14 deletions test/test-helper.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,10 @@
(when (f-exists? loop-sandbox-path)
(error "Something is already in %s. Check and destroy it yourself" loop-sandbox-path))

(defmacro within-sandbox (&rest body)
"Evaluate BODY in an empty sandbox directory."
`(let ((default-directory loop-sandbox-path))
(when (f-exists? loop-sandbox-path)
(f-delete default-directory :force))
(f-mkdir loop-sandbox-path)
,@body
(f-delete default-directory :force)))

(require 'ert)
(require 'el-mock)
(eval-when-compile
(require 'cl))
(require 'undercover)
(undercover "loop.el"
(:exclude "*-test.el")
(:report-file "/tmp/undercover-report.json"))
(require 'loop)

(provide 'test-helper)
;;; test-helper.el ends here

0 comments on commit 5b0de03

Please sign in to comment.