FIX: manually adds frowning_face_with_open_mouth for apple (#13528)

This commit is contained in:
Joffrey JAFFEUX
2021-07-21 23:27:20 +02:00
committed by GitHub
parent 78ab3f37b8
commit 5eb6e9281a
7 changed files with 13 additions and 13 deletions

View File

@ -120,7 +120,7 @@ RSpec.describe UploadSecurity do
describe "when it is based on a regular emoji" do
it "returns false" do
falafel = Emoji.all.find { |e| e.url == '/images/emoji/twitter/falafel.png?v=9' }
falafel = Emoji.all.find { |e| e.url == "/images/emoji/twitter/falafel.png?v=#{Emoji::EMOJI_VERSION}" }
upload.update!(origin: "http://localhost:3000#{falafel.url}")
expect(subject.should_be_secure?).to eq(false)
end