diff options
author | Sean Allred <code@seanallred.com> | 2014-11-02 13:02:14 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-02 13:02:14 -0500 |
commit | 800b3af0e5a4cbfb385b2f8d925f5884bc71baad (patch) | |
tree | 320a9f940d01fc8db480c9a6a25789ce1a014320 /test/tests.el | |
parent | 13e7d2b851da90435bc33137925144074a28eb4c (diff) |
Let-bind user-emacs-directory to cwd
Useful for testing locally, since now you can simply blow away the
`.stackmode' directory instead of searching for it in `.emacs.d'.
At any rate, it keeps everything in the project tidy.
Diffstat (limited to 'test/tests.el')
-rw-r--r-- | test/tests.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/tests.el b/test/tests.el index f19d506..bd0cb67 100644 --- a/test/tests.el +++ b/test/tests.el @@ -5,6 +5,8 @@ (if (string-prefix-p "stack-" (symbol-name symbol)) (unintern symbol))))) +;;; Tests + (defun stack-test-sample-data (method &optional directory) (with-current-buffer (find-file-noselect @@ -15,17 +17,16 @@ "'no-value" (buffer-string)))))) -(setq stack-test-data-questions - (stack-test-sample-data "questions") - stack-test-data-sites - (stack-test-sample-data "sites")) - -;;; Tests - (setq stack-core-remaining-api-requests-message-threshold 50000 debug-on-error t - stack-core-silent-requests nil) + stack-core-silent-requests nil + user-emacs-directory "." + + stack-test-data-questions + (stack-test-sample-data "questions") + stack-test-data-sites + (stack-test-sample-data "sites")) (require 'stack-core) (require 'stack-question) |