diff options
Diffstat (limited to 'spec/lib/uploaded_file_spec.rb')
-rw-r--r-- | spec/lib/uploaded_file_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/uploaded_file_spec.rb b/spec/lib/uploaded_file_spec.rb index 721b3d70feb..3a77b12be82 100644 --- a/spec/lib/uploaded_file_spec.rb +++ b/spec/lib/uploaded_file_spec.rb @@ -294,4 +294,8 @@ RSpec.describe UploadedFile, feature_category: :package_registry do it { expect(described_class.new(temp_file.path).sanitize_filename('..')).to eq('_..') } it { expect(described_class.new(temp_file.path).sanitize_filename('')).to eq('unnamed') } end + + describe '#empty_size?' do + it { expect(described_class.new(temp_file.path).empty_size?).to eq(true) } + end end |