Skip to content

Commit 816a20b

Browse files
committed
Mock BitsExpiration.expire_packages! in package_model tests
1 parent 0db6a29 commit 816a20b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/unit/models/runtime/package_model_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
module VCAP::CloudController
44
RSpec.describe PackageModel do
5+
before do
6+
allow_any_instance_of(BitsExpiration).to receive(:expire_packages!)
7+
end
8+
59
describe 'validations' do
610
it { is_expected.to validates_includes PackageModel::PACKAGE_STATES, :state, allow_missing: true }
711

0 commit comments

Comments
 (0)