Adjust specs for web app metadata fetching

This commit is contained in:
Râu Cao
2023-11-01 21:49:08 +01:00
parent 92310d434a
commit 0c1b1b4afe
2 changed files with 10 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ RSpec.describe RemoteStorageAuthorization, type: :model do
let(:user) { create :user }
before do
allow_any_instance_of(AppCatalog::WebApp).to receive(:update_metadata).and_return(true)
end
describe "#create" do
after(:each) { clear_enqueued_jobs }
after(:all) { redis_rs_delete_keys("authorizations:*") }