From c485044a1e594f96780148f6a782af49822ddb51 Mon Sep 17 00:00:00 2001 From: KMY Date: Mon, 23 Oct 2023 10:07:17 +0900 Subject: [PATCH] =?UTF-8?q?Test:=20#166=20=E3=83=AA=E3=83=A2=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=81=8B=E3=82=89=E8=87=AA=E5=88=86=E3=81=AE=E7=B5=B5?= =?UTF-8?q?=E6=96=87=E5=AD=97=E3=82=92=E5=8F=97=E3=81=91=E5=8F=96=E3=81=A3?= =?UTF-8?q?=E3=81=9F=E6=99=82=E3=80=81=E3=83=A9=E3=82=A4=E3=82=BB=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E3=81=8C=E4=B8=8A=E6=9B=B8=E3=81=8D=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=81=93=E3=81=A8=E3=82=92=E7=A2=BA=E8=AA=8D?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/lib/activitypub/activity/like_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/lib/activitypub/activity/like_spec.rb b/spec/lib/activitypub/activity/like_spec.rb index 16ea81dccd..25037ed635 100644 --- a/spec/lib/activitypub/activity/like_spec.rb +++ b/spec/lib/activitypub/activity/like_spec.rb @@ -182,6 +182,7 @@ RSpec.describe ActivityPub::Activity::Like do url: 'http://example.com/emoji.png', }, name: 'tinking', + license: 'Ohagi but everyone', } end @@ -198,6 +199,11 @@ RSpec.describe ActivityPub::Activity::Like do expect(subject.first.custom_emoji.domain).to be_nil expect(sender.favourited?(status)).to be false end + + it 'not change license' do + expect(subject.first.custom_emoji.reload.license).to eq 'Everyone but Ohagi' + expect(subject.first.custom_emoji.reload.uri).to be_nil + end end context 'with unicode emoji and reject_media enabled' do