From 53fdb88732568fb9c9e5d682f88371e602064d42 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Fri, 2 Jan 2015 20:07:34 -0500 Subject: Add test file for state changes --- test/test-state.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/test-state.el (limited to 'test') diff --git a/test/test-state.el b/test/test-state.el new file mode 100644 index 0000000..32f52b2 --- /dev/null +++ b/test/test-state.el @@ -0,0 +1,12 @@ +(defmacro with-question-data (cell id &rest body) + (declare (indent 2)) + `(let ((,cell '((question_id . ,id) + (site_par . "emacs") + (last_activity_date . 1234123456)))) + ,@body)) + +(ert-deftest test-question-mark-read () + "00ccd139248e782cd8316eff65c26aed838c7e46" + (should + (with-question-data q nil + (sx-question--mark-read q)))) -- cgit v1.2.3