Test: #166 リモートから自分の絵文字を受け取った時、ライセンスが上書きされないことを確認するテスト
This commit is contained in:
parent
dd6db1f337
commit
491816133a
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue