mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Allow CustomEmoji to normalize its own domain (#35726)
This commit is contained in:
parent
ce1680e6f9
commit
b827a0a6a8
3 changed files with 3 additions and 2 deletions
|
|
@ -80,6 +80,7 @@ RSpec.describe CustomEmoji, :attachment_processing do
|
|||
|
||||
describe 'Normalizations' do
|
||||
describe 'domain' do
|
||||
it { is_expected.to normalize(:domain).from(' www.mastodon.host ').to('www.mastodon.host') }
|
||||
it { is_expected.to normalize(:domain).from('wWw.MaStOdOn.CoM').to('www.mastodon.com') }
|
||||
it { is_expected.to normalize(:domain).from(nil).to(nil) }
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue