aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-toot-tests.el
diff options
context:
space:
mode:
authorJohnson Denen <johnson.denen@gmail.com>2017-04-23 01:14:18 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-04-23 11:09:06 -0400
commit993fbec64edf128ba9e5a1aa61f93c385fe3be31 (patch)
tree02ebed1a77f3e7e4e3893d3ddf335bb3aac6358b /test/mastodon-toot-tests.el
parent950a71a7e89efe48804a89322f9a974610d40770 (diff)
Clean up tests and update DOCSTRINGs
Diffstat (limited to 'test/mastodon-toot-tests.el')
-rw-r--r--test/mastodon-toot-tests.el20
1 files changed, 1 insertions, 19 deletions
diff --git a/test/mastodon-toot-tests.el b/test/mastodon-toot-tests.el
index ca04ae8..e9d3b26 100644
--- a/test/mastodon-toot-tests.el
+++ b/test/mastodon-toot-tests.el
@@ -1,24 +1,6 @@
(require 'el-mock)
-(ert-deftest mastodon-toot:cancel ()
+(ert-deftest cancel ()
(with-mock
(mock (kill-buffer-and-window))
(should (eq nil (mastodon-toot--cancel)))))
-
-(ert-deftest mastodon-toot:send ()
- (with-mock
- (stub mastodon--api-for => "https://instance/api/v/statuses")
- (stub buffer-string => "This is a test toot")
- (stub kill-buffer-and-window)
- (stub mastodon-auth--access-token => "access-token-string")
- (mock (mastodon--http-post "https://instance/api/v/statuses"
- 'mastodon-toot--send-triage
- '(("status" . "This is a test toot"))
- '(("Authorization" . "Bearer access-token-string"))))
- (should (eq nil (mastodon-toot--send)))))
-
-(ert-deftest mastodon-toot:send-triage ()
- (with-mock
- (mock (mastodon--http-response-triage "status"
- (lambda () (switch-to-buffer (current-buffer)))))
- (should (eq nil (mastodon-toot--send-triage "status")))))