mirror of
https://github.com/neocities/neocities.git
synced 2025-07-25 03:48:22 +02:00
catch dir too long
This commit is contained in:
parent
f4fcf94b1a
commit
3ccb4ace37
3 changed files with 17 additions and 7 deletions
|
@ -520,13 +520,6 @@ describe 'site_files' do
|
|||
_(@site.reload.changed_count).must_equal 2
|
||||
end
|
||||
|
||||
describe 'directory create' do
|
||||
it 'scrubs ../ from directory' do
|
||||
@site.create_directory '../../test'
|
||||
_(@site.site_files.select {|site_file| site_file.path =~ /\.\./}.length).must_equal 0
|
||||
end
|
||||
end
|
||||
|
||||
describe 'classification' do
|
||||
before do
|
||||
puts "TODO FINISH CLASSIFIER"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue