mirror of
https://github.com/neocities/neocities.git
synced 2025-07-25 03:48:22 +02:00
finishing up drag-n-drop code, use param for filename with site_file/text_editor
This commit is contained in:
parent
943271b509
commit
f6af2cbbcf
7 changed files with 196 additions and 399 deletions
|
@ -410,7 +410,7 @@ describe 'site_files' do
|
|||
it 'fails with unsupported file' do
|
||||
upload 'flowercrime.wav' => Rack::Test::UploadedFile.new('./tests/files/flowercrime.wav', 'audio/x-wav')
|
||||
|
||||
_(JSON.parse(last_response.body)['message']).must_match /please upgrade to a supporter account/i
|
||||
_(JSON.parse(last_response.body)['error_type']).must_equal 'invalid_file_type'
|
||||
_(File.exists?(@site.files_path('flowercrime.wav'))).must_equal false
|
||||
_(@site.site_changed).must_equal false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue