Sha256: a49f8cb267d987305ad732e7de876c9d7cb64ad5172b6fbd5bede276a6946c57
Contents?: true
Size: 445 Bytes
Versions: 8
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true module AccessTokenRequestHelper def client_is_authorized(client, resource_owner, access_token_attributes = {}) attributes = { application: client, resource_owner_id: resource_owner.id, resource_owner_type: resource_owner.class.name, }.merge(access_token_attributes) FactoryBot.create(:access_token, attributes) end end RSpec.configuration.send :include, AccessTokenRequestHelper
Version data entries
8 entries across 8 versions & 3 rubygems