Fetch/store Web App metadata and icons, finish RS integration #153
@ -2,8 +2,13 @@ require 'rails_helper'
|
||||
|
||||
RSpec.describe RemoteStorageExpireAuthorizationJob, type: :job do
|
||||
before do
|
||||
allow_any_instance_of(AppCatalog::WebApp).to(
|
||||
receive(:update_metadata).and_return(true)
|
||||
)
|
||||
|
||||
@user = create :user, cn: "ronald", ou: "kosmos.org"
|
||||
@rs_authorization = create :remote_storage_authorization, user: @user, expire_at: 1.day.ago
|
||||
@rs_authorization = create :remote_storage_authorization,
|
||||
user: @user, expire_at: 1.day.ago
|
||||
end
|
||||
|
||||
after do
|
||||
|
@ -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:*") }
|
||||
|
Loading…
x
Reference in New Issue
Block a user