aboutsummaryrefslogtreecommitdiff
path: root/test/test-api.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-01 19:03:34 -0500
committerSean Allred <code@seanallred.com>2015-01-01 19:03:34 -0500
commit01ac19db7ff5087e3c2b481a57d21d242ee9fb34 (patch)
tree76bff5cb0fc075542ad4f8b135b770591993c2d2 /test/test-api.el
parent9650a1541b43da18067466df7671d23d5baffeed (diff)
parentbf4f193a76100917764f249023f4844a2ca15b2c (diff)
Merge pull request #185 from vermiculus/ert-refactor
Refactor tests
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" '(()))))
+