diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-11-09 13:32:11 +0000 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-11-09 13:32:11 +0000 |
| commit | 182aee9fe865dde5d7271deaa3245f651918d57e (patch) | |
| tree | 34e5a2a065d78ad0a3dbad2bddacd2dad579ae92 /test/object | |
| parent | 21716aa594064d5f4f4a91a8b40a679775709e1d (diff) | |
| parent | 287d92c9202de151c917550a5bfc5715d57dff83 (diff) | |
| download | pleroma-182aee9fe865dde5d7271deaa3245f651918d57e.tar.gz pleroma-182aee9fe865dde5d7271deaa3245f651918d57e.zip | |
Merge branch 'release/1.1.5' into 'stable'
Release/1.1.5
See merge request pleroma/pleroma!1954
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 61cd1b412..a909f6db2 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, {:error, :error}" 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 |
