mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 08:42:00 +02:00
support for manifest files
This commit is contained in:
parent
6c330666f2
commit
0de126d6b1
2 changed files with 17 additions and 4 deletions
|
@ -39,6 +39,12 @@ describe 'site_files' do
|
|||
File.exists?(@site.files_path('invalidutf8.html')).must_equal true
|
||||
end
|
||||
|
||||
it 'works with manifest files' do
|
||||
$debug = true
|
||||
upload 'files[]' => Rack::Test::UploadedFile.new('./tests/files/.manifest', 'text/plain')
|
||||
File.exists?(@site.files_path('.manifest')).must_equal true
|
||||
end
|
||||
|
||||
it 'succeeds with index.html file' do
|
||||
@site.site_changed.must_equal false
|
||||
upload 'files[]' => Rack::Test::UploadedFile.new('./tests/files/index.html', 'text/html')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue