summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/status_controller_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-02-10 20:49:20 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-02-10 20:49:20 +0300
commit6813c0302c2b665d337d5f5831d2df6312b6b277 (patch)
tree8c9333eeff70c799ecd30e6589f3cbebd8adbf5c /test/web/mastodon_api/controllers/status_controller_test.exs
parent2c40c8b4a2890e60abe8d67a3c8af4a88d225b60 (diff)
parent544bdbfb90d764a5aba8ed07c13b842838d76d73 (diff)
downloadpleroma-6813c0302c2b665d337d5f5831d2df6312b6b277.tar.gz
pleroma-6813c0302c2b665d337d5f5831d2df6312b6b277.zip
Merge branch 'develop' into issue/1383
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