Sha256: c35607e8723a1b83fadd62a092d98f11bf937474a1a6c262d59ea41603c6d1f2

Contents?: true

Size: 391 Bytes

Versions: 19

Compression:

Stored size: 391 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,
    }.merge(access_token_attributes)
    FactoryBot.create(:access_token, attributes)
  end
end

RSpec.configuration.send :include, AccessTokenRequestHelper

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
doorkeeper-5.1.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.6 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.3.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.1.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.5 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.3.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-2.2.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.4 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.3.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.3.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-2.1.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.0.rc3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.0.rc2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.2.0.rc1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.1.0 spec/support/helpers/access_token_request_helper.rb