aboutsummaryrefslogtreecommitdiff
path: root/test/test-api.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-01 19:11:21 -0500
committerSean Allred <code@seanallred.com>2015-01-01 19:11:21 -0500
commitde9bf24bb7ccbb5f94cc523d4eb291ed793537fd (patch)
tree30a03a95b3184c00432bc01144435b4a2e28ce14 /test/test-api.el
parent39116611ea99b3b0ba33545d38c2983a17db487d (diff)
parente05f937910bb4ca0e7ea1c9f1273fbafac523921 (diff)
Merge branch 'master' into search
Diffstat (limited to 'test/test-api.el')
-rw-r--r--test/test-api.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test-api.el b/test/test-api.el
new file mode 100644
index 0000000..ca775ff
--- /dev/null
+++ b/test/test-api.el
@@ -0,0 +1,13 @@
+(ert-deftest test-basic-request ()
+ "Test basic request functionality"
+ (should (sx-request-make "sites")))
+
+(ert-deftest test-question-retrieve ()
+ "Test the ability to receive a list of questions."
+ (should (sx-question-get-questions 'emacs)))
+
+(ert-deftest test-bad-request ()
+ "Test a method given a bad set of keywords"
+ (should-error
+ (sx-request-make "questions" '(()))))
+