diff options
author | lain <lain@soykaf.club> | 2020-02-11 13:58:36 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-02-11 13:58:36 +0100 |
commit | 24c526a0b18b822ae339a481934bfa66b13bba54 (patch) | |
tree | 11d7c9bb2bf5503b536ee0ab72533974e9a7b21b /test/web/mastodon_api/controllers/status_controller_test.exs | |
parent | 57098713c02363aaee78d519726e6f2975f725d8 (diff) | |
parent | 2f1c61255ff95a1d21a751cb78da3c031ccdd692 (diff) | |
download | pleroma-24c526a0b18b822ae339a481934bfa66b13bba54.tar.gz pleroma-24c526a0b18b822ae339a481934bfa66b13bba54.zip |
Merge remote-tracking branch 'origin/develop' into uguu-uwu-notices-bulge
Diffstat (limited to 'test/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/status_controller_test.exs | 5 |
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 |