mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
parent
a8baa6d9e7
commit
7bac70676e
@ -126,6 +126,9 @@ describe Upload do
|
||||
upload.update!(url: "/uploads/default/12345/971308e535305c51.png")
|
||||
|
||||
expect(Upload.get_from_url(upload.url)).to eq(upload)
|
||||
|
||||
expect(Upload.get_from_url("/uploads/default/123131/971308e535305c51.png"))
|
||||
.to eq(nil)
|
||||
end
|
||||
|
||||
describe 'for a url a tree' do
|
||||
|
Loading…
Reference in New Issue
Block a user