Skip to content

Commit 72d6a9d

Browse files
committed
Mock BitsExpiration.expire_packages! in stagings_controller tests
1 parent 816a20b commit 72d6a9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/unit/controllers/runtime/stagings_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ module VCAP::CloudController
238238
Fog.unmock!
239239
TestConfig.override(**staging_config)
240240
set_current_user_as_admin(user: User.make(guid: '1234'), email: '[email protected]', user_name: 'briggs')
241+
allow_any_instance_of(BitsExpiration).to receive(:expire_packages!)
241242
end
242243

243244
after { FileUtils.rm_rf(workspace) }

0 commit comments

Comments
 (0)