diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-05-18 13:31:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 13:31:01 -0400 |
commit | a9e595142eee69fe84f0ab06f7fde76cef27cdac (patch) | |
tree | 8cab32b1228283bdad86f426e346c5aa9ad41368 /test/mastodon-client-tests.el | |
parent | 9ccc0e8cf74b938493753e2b64f95591f771de44 (diff) | |
parent | 8c841d2ad3d60997f7aea725da86b83ac80dcd61 (diff) |
Merge pull request #135 from jdenen/develop
Release 0.7.0
Diffstat (limited to 'test/mastodon-client-tests.el')
-rw-r--r-- | test/mastodon-client-tests.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/mastodon-client-tests.el b/test/mastodon-client-tests.el index e1f92f8..c339efa 100644 --- a/test/mastodon-client-tests.el +++ b/test/mastodon-client-tests.el @@ -54,22 +54,22 @@ (ert-deftest client-1 () "Should return `mastondon-client' if non-nil." - (let ((mastodon-client t)) + (let ((mastodon-client--client-details t)) (should (eq (mastodon-client) t)))) (ert-deftest client-2 () "Should read from `mastodon-token-file' if available." - (let ((mastodon-client nil)) + (let ((mastodon-client--client-details nil)) (with-mock (mock (mastodon-client--read) => '(:client_id "foo" :client_secret "bar")) (should (equal (mastodon-client) '(:client_id "foo" :client_secret "bar"))) - (should (equal mastodon-client '(:client_id "foo" :client_secret "bar")))))) + (should (equal mastodon-client--client-details '(:client_id "foo" :client_secret "bar")))))) (ert-deftest client-3 () "Should store client data in plstore if it can't be read." - (let ((mastodon-client nil)) + (let ((mastodon-client--client-details nil)) (with-mock (mock (mastodon-client--read)) (mock (mastodon-client--store) => '(:client_id "foo" :client_secret "baz")) (should (equal (mastodon-client) '(:client_id "foo" :client_secret "baz"))) - (should (equal mastodon-client '(:client_id "foo" :client_secret "baz")))))) + (should (equal mastodon-client--client-details '(:client_id "foo" :client_secret "baz")))))) |