finishing up drag-n-drop code, use param for filename with site_file/text_editor

This commit is contained in:
Kyle Drake 2024-03-08 11:53:51 -06:00
parent 943271b509
commit f6af2cbbcf
7 changed files with 196 additions and 399 deletions

View file

@ -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