summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@gmail.com>2019-04-17 16:58:08 +0700
committerRoman Chvanikov <chvanikoff@gmail.com>2019-04-17 16:58:08 +0700
commit87013f843853250e8b15696900e09afb92d22aac (patch)
tree72491ebe110dbd191485a5f7aa1b80e6359e848b /test/web/twitter_api/twitter_api_test.exs
parentdc21181f6504b55afa68de63f170fcb0f1084a6b (diff)
parent8de17c480e4267a46ae8d862a3c8918aa6734c39 (diff)
downloadpleroma-87013f843853250e8b15696900e09afb92d22aac.tar.gz
pleroma-87013f843853250e8b15696900e09afb92d22aac.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into feature/digest-email
Diffstat (limited to 'test/web/twitter_api/twitter_api_test.exs')
-rw-r--r--test/web/twitter_api/twitter_api_test.exs11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs
index 6d43bd13a..4c9ae2da8 100644
--- a/test/web/twitter_api/twitter_api_test.exs
+++ b/test/web/twitter_api/twitter_api_test.exs
@@ -105,7 +105,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
get_in(activity.data, ["object", "context"])
assert get_in(reply.data, ["object", "inReplyTo"]) == get_in(activity.data, ["object", "id"])
- assert get_in(reply.data, ["object", "inReplyToStatusId"]) == activity.id
+ assert Activity.get_in_reply_to_activity(reply).id == activity.id
end
test "Follow another user using user_id" do
@@ -325,8 +325,15 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
assert user.info.confirmation_pending
+ email = Pleroma.Emails.UserEmail.account_confirmation_email(user)
+
+ notify_email = Pleroma.Config.get([:instance, :notify_email])
+ instance_name = Pleroma.Config.get([:instance, :name])
+
Swoosh.TestAssertions.assert_email_sent(
- Pleroma.Emails.UserEmail.account_confirmation_email(user)
+ from: {instance_name, notify_email},
+ to: {user.name, user.email},
+ html_body: email.html_body
)
end