summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/status_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-02-11 13:54:55 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-02-11 13:54:55 +0400
commit6875ccb6bfcc5ae62db26d38c3d5eac4c6f8706a (patch)
treedacb02d953473e3a0c6aeec58d86fb7fb1ed5886 /test/web/mastodon_api/controllers/status_controller_test.exs
parent3c4a30c6db312aff2afbfcd423498be19c02c68c (diff)
parent5ebffd5224729413e53a55ddda9a1f86224d7d73 (diff)
downloadpleroma-6875ccb6bfcc5ae62db26d38c3d5eac4c6f8706a.tar.gz
pleroma-6875ccb6bfcc5ae62db26d38c3d5eac4c6f8706a.zip
Merge branch 'develop' into feature/new-registrations-digest
Diffstat (limited to 'test/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/status_controller_test.exs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs
index b03b4b344..83138d7ef 100644
--- a/test/web/mastodon_api/controllers/status_controller_test.exs
+++ b/test/web/mastodon_api/controllers/status_controller_test.exs
@@ -370,6 +370,11 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
assert NaiveDateTime.diff(NaiveDateTime.from_iso8601!(response["poll"]["expires_at"]), time) in 420..430
refute response["poll"]["expred"]
+
+ question = Object.get_by_id(response["poll"]["id"])
+
+ # closed contains utc timezone
+ assert question.data["closed"] =~ "Z"
end
test "option limit is enforced", %{conn: conn} do