Mastodon Controller: Fix tests.
authorlain <lain@soykaf.club>
Tue, 16 Jul 2019 05:01:18 +0000 (14:01 +0900)
committerlain <lain@soykaf.club>
Tue, 16 Jul 2019 05:01:18 +0000 (14:01 +0900)
test/web/mastodon_api/mastodon_api_controller_test.exs

index 6ffa64dc8bdf192c0d7956d545be79cb8d1f9a4d..f7c8ccde52826a53ea230cac93648f6f02408bb8 100644 (file)
@@ -3503,7 +3503,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
         |> get("/api/v1/polls/#{object.id}")
 
       response = json_response(conn, 200)
-      id = object.id
+      id = to_string(object.id)
       assert %{"id" => ^id, "expired" => false, "multiple" => false} = response
     end