diff options
author | Sean Allred <code@seanallred.com> | 2015-01-03 23:30:50 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-03 23:30:50 -0500 |
commit | 3d35ecfbf78bb862eb70c3166f6eb35fd4cb9cce (patch) | |
tree | 245ffe8cfb58d8bd18f802a01c94e633accfa7f2 /test/test-api.el | |
parent | 3753e7c15d6b8b16b76daa238418f71b0de49871 (diff) | |
parent | 63dcca1acd08c0d103196a5d35a581d5380d3717 (diff) |
Merge pull request #187 from vermiculus/get-all
Get all items
Diffstat (limited to 'test/test-api.el')
-rw-r--r-- | test/test-api.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-api.el b/test/test-api.el index ca775ff..91a8adb 100644 --- a/test/test-api.el +++ b/test/test-api.el @@ -11,3 +11,12 @@ (should-error (sx-request-make "questions" '(())))) +(ert-deftest test-request-all () + "Test request all items" + (should + (< 250 + (length (sx-request-all-items "sites"))))) + +(ert-deftest test-method-get-all () + "Tests sx-method interface to `sx-request-all-items'" + (should (< 250 (length (sx-method-call 'sites :get-all t))))) |