• Giorgenes Gelatti's avatar
    Fix package_file storage computation · 72f5dc0a
    Giorgenes Gelatti authored
    When package_files are created without
    an explicit size, the size is updated
    on an after_save hook by copying over
    the size from the file object.
    
    This is called after the statistics
    hook therefore the delta is not
    added to the statistics.
    
    This fixes that issue and updates
    the statistic spec to be more robust.
    72f5dc0a
package_file.rb 2.04 KB