mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 23:54:29 +08:00
Rubocop lint
This commit is contained in:
parent
500185dc11
commit
5122826bde
@ -432,7 +432,7 @@ describe Upload do
|
|||||||
|
|
||||||
it 'does not mark an upload whose origin matches a regular emoji as secure (sometimes emojis are downloaded in pull_hotlinked_images)' do
|
it 'does not mark an upload whose origin matches a regular emoji as secure (sometimes emojis are downloaded in pull_hotlinked_images)' do
|
||||||
SiteSetting.login_required = true
|
SiteSetting.login_required = true
|
||||||
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=9' }
|
||||||
upload.update!(secure: false, origin: "http://localhost:3000#{falafel.url}")
|
upload.update!(secure: false, origin: "http://localhost:3000#{falafel.url}")
|
||||||
upload.update_secure_status
|
upload.update_secure_status
|
||||||
expect(upload.reload.secure).to eq(false)
|
expect(upload.reload.secure).to eq(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user