diff options
Diffstat (limited to 'spec/models/packages/package_file_spec.rb')
-rw-r--r-- | spec/models/packages/package_file_spec.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/models/packages/package_file_spec.rb b/spec/models/packages/package_file_spec.rb index c665f738ead..a244ed34e54 100644 --- a/spec/models/packages/package_file_spec.rb +++ b/spec/models/packages/package_file_spec.rb @@ -104,15 +104,9 @@ RSpec.describe Packages::PackageFile, type: :model do let_it_be(:package, reload: true) { create(:package) } context 'when the package file has an explicit size' do - it_behaves_like 'UpdateProjectStatistics' do - subject { build(:package_file, :jar, package: package, size: 42) } - end - end + subject { build(:package_file, :jar, package: package, size: 42) } - context 'when the package file does not have a size' do - it_behaves_like 'UpdateProjectStatistics' do - subject { build(:package_file, package: package, size: nil) } - end + it_behaves_like 'UpdateProjectStatistics', :packages_size end end |