mirror of https://github.com/tootsuite/mastodon
Make the test be passed
parent
fcfb1b4005
commit
54a8c60e59
|
@ -234,7 +234,7 @@ RSpec.describe Formatter do
|
||||||
let(:text) { ':coolcat: Beep boop' }
|
let(:text) { ':coolcat: Beep boop' }
|
||||||
|
|
||||||
it 'converts shortcode to image tag' do
|
it 'converts shortcode to image tag' do
|
||||||
is_expected.to match(/<p><img draggable="false" class="emojione" alt=":coolcat:"/)
|
is_expected.to match(/<p><img draggable="false" class="emojione custom-emoji" alt=":coolcat:"/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ RSpec.describe Formatter do
|
||||||
let(:text) { 'Beep :coolcat: boop' }
|
let(:text) { 'Beep :coolcat: boop' }
|
||||||
|
|
||||||
it 'converts shortcode to image tag' do
|
it 'converts shortcode to image tag' do
|
||||||
is_expected.to match(/Beep <img draggable="false" class="emojione" alt=":coolcat:"/)
|
is_expected.to match(/Beep <img draggable="false" class="emojione custom-emoji" alt=":coolcat:"/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ RSpec.describe Formatter do
|
||||||
let(:text) { 'Beep boop :coolcat:' }
|
let(:text) { 'Beep boop :coolcat:' }
|
||||||
|
|
||||||
it 'converts shortcode to image tag' do
|
it 'converts shortcode to image tag' do
|
||||||
is_expected.to match(/boop <img draggable="false" class="emojione" alt=":coolcat:"/)
|
is_expected.to match(/boop <img draggable="false" class="emojione custom-emoji" alt=":coolcat:"/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -281,7 +281,7 @@ RSpec.describe Formatter do
|
||||||
let(:text) { '<p>:coolcat: Beep boop<br />' }
|
let(:text) { '<p>:coolcat: Beep boop<br />' }
|
||||||
|
|
||||||
it 'converts shortcode to image tag' do
|
it 'converts shortcode to image tag' do
|
||||||
is_expected.to match(/<p><img draggable="false" class="emojione" alt=":coolcat:"/)
|
is_expected.to match(/<p><img draggable="false" class="emojione custom-emoji" alt=":coolcat:"/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ RSpec.describe Formatter do
|
||||||
let(:text) { '<p>Beep :coolcat: boop</p>' }
|
let(:text) { '<p>Beep :coolcat: boop</p>' }
|
||||||
|
|
||||||
it 'converts shortcode to image tag' do
|
it 'converts shortcode to image tag' do
|
||||||
is_expected.to match(/Beep <img draggable="false" class="emojione" alt=":coolcat:"/)
|
is_expected.to match(/Beep <img draggable="false" class="emojione custom-emoji" alt=":coolcat:"/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ RSpec.describe Formatter do
|
||||||
let(:text) { '<p>Beep boop<br />:coolcat:</p>' }
|
let(:text) { '<p>Beep boop<br />:coolcat:</p>' }
|
||||||
|
|
||||||
it 'converts shortcode to image tag' do
|
it 'converts shortcode to image tag' do
|
||||||
is_expected.to match(/<br><img draggable="false" class="emojione" alt=":coolcat:"/)
|
is_expected.to match(/<br><img draggable="false" class="emojione custom-emoji" alt=":coolcat:"/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue