mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
fix when unicode is used for filename and dir
This commit is contained in:
parent
e9afe63695
commit
b54b2a4818
4 changed files with 18 additions and 1 deletions
|
@ -443,6 +443,14 @@ describe 'site_files' do
|
|||
end
|
||||
end
|
||||
|
||||
it 'works with unicode chars on filename and dir' do
|
||||
upload(
|
||||
'dir' => '詩經',
|
||||
'files[]' => Rack::Test::UploadedFile.new('./tests/files/詩經.jpg', 'image/jpeg')
|
||||
)
|
||||
_(@site.site_files_dataset.where(path: '詩經/詩經.jpg').count).must_equal 1
|
||||
end
|
||||
|
||||
it 'does not register site changing until root index.html is changed' do
|
||||
upload(
|
||||
'dir' => 'derpie/derptest',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue