aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 14:29:59 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 14:29:59 -0200
commit680741fbb56b09fc1ffb842bc22cafab92a01501 (patch)
tree4d73f70cc98f388f6a5b31e7a93af1d37539b917 /test
parenta9509bb93d978fd35b0dc0ea07102c59b30de3a4 (diff)
Fix tests
Diffstat (limited to 'test')
-rw-r--r--test/test-printing.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test-printing.el b/test/test-printing.el
index 7384829..e6f5c3a 100644
--- a/test/test-printing.el
+++ b/test/test-printing.el
@@ -37,10 +37,11 @@ after being run through `sx-question--tag-format'."
(ert-deftest question-list-display ()
(cl-letf (((symbol-function #'sx-request-make)
(lambda (&rest _) sx-test-data-questions)))
- (sx-tab-frontpage nil "emacs")
- (switch-to-buffer "*question-list*")
+ (sx-tab-all-questions nil "emacs")
+ (switch-to-buffer sx-tab--all-questions-buffer)
(goto-char (point-min))
- (should (equal (buffer-name) "*question-list*"))
+ (should (equal (buffer-name)
+ (format "*question-list: %s *" sx-question-list--current-tab)))
(line-should-match
(question-list-regex
"Focus-hook: attenuate colours when losing focus"
@@ -51,9 +52,9 @@ after being run through `sx-question--tag-format'."
"Babel doesn&#39;t wrap results in verbatim"
0 1 "org-mode" "org-export" "org-babel"))
;; ;; Use this when we have a real sx-question buffer.
- ;; (call-interactively 'sx-question-list-display-question)
- ;; (should (equal (buffer-name) "*sx-question*"))
- (switch-to-buffer "*question-list*")
+ ;; (save-excursion
+ ;; (call-interactively 'sx-question-list-display-question)
+ ;; (should (equal (buffer-name) "*sx-question*")))
(sx-question-list-previous 4)
(line-should-match
(question-list-regex