Skip to content

Commit

Permalink
Update feature spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mereghost committed Aug 8, 2024
1 parent 28a2061 commit f3c5192
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
let(:oauth_client) { create(:oauth_client, integration: storage) }

before do
create_oauth_client_tokens_for_users(oauth_client:,
users: [connected_user, admin_user,
connected_no_permissions_user])
create_remote_identities_for_users(oauth_client:,
users: [connected_user, admin_user,
connected_no_permissions_user])
end

it "cannot be accessed without being logged in" do
Expand Down Expand Up @@ -122,9 +122,9 @@ def create_nextcloud_storage_with_oauth_application
create(:nextcloud_storage, :as_automatically_managed, oauth_application:)
end

def create_oauth_client_tokens_for_users(oauth_client:, users:)
def create_remote_identities_for_users(oauth_client:, users:)
users.each do |user|
create(:oauth_client_token, oauth_client:, user:)
create(:remote_identity, oauth_client:, user:, origin_user_id: "origin-user-id-#{user.id}")
end
end
end

0 comments on commit f3c5192

Please sign in to comment.