aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--test/tests.el17
2 files changed, 11 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 663dcbb..2585bf5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@
*.elc
/.cask/
.dir-locals.el
+/.stackmode/
+/url/
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)