diff options
| author | Maxim Filippov <colixer@gmail.com> | 2019-11-11 19:18:12 +0900 |
|---|---|---|
| committer | Maxim Filippov <colixer@gmail.com> | 2019-11-11 19:18:12 +0900 |
| commit | 46787b9fe1c61d5139198187a0d2013f1a2e5162 (patch) | |
| tree | bdf3e1f3b42aba52f18d0be18910c841dc0c0e25 /test/object | |
| parent | 1649d6f6894bbb2c36095d34eddd17d2e5f8d9df (diff) | |
| parent | 7438c177d9f57e8779b979ca553c3b501726efb3 (diff) | |
| download | pleroma-46787b9fe1c61d5139198187a0d2013f1a2e5162.tar.gz pleroma-46787b9fe1c61d5139198187a0d2013f1a2e5162.zip | |
Merge branch 'develop' into feature/reports-groups-and-multiple-state-update
Diffstat (limited to 'test/object')
| -rw-r--r-- | test/object/containment_test.exs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/object/containment_test.exs b/test/object/containment_test.exs index 0dc2728b9..71fe5204c 100644 --- a/test/object/containment_test.exs +++ b/test/object/containment_test.exs @@ -67,6 +67,20 @@ defmodule Pleroma.Object.ContainmentTest do end) =~ "[error] Could not decode user at fetch https://n1u.moe/users/rye" end + + test "contain_origin_from_id() gracefully handles cases where no ID is present" do + data = %{ + "type" => "Create", + "object" => %{ + "id" => "http://example.net/~alyssa/activities/1234", + "attributedTo" => "http://example.org/~alyssa" + }, + "actor" => "http://example.com/~bob" + } + + :error = + Containment.contain_origin_from_id("http://example.net/~alyssa/activities/1234", data) + end end describe "containment of children" do |
