Sha256: cf5a88a2033d2e2b4ad416ac06e02b5c08da823005e170be00f6a0425f22af2b

Contents?: true

Size: 359 Bytes

Versions: 23

Compression:

Stored size: 359 Bytes

Contents

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

23 entries across 23 versions & 3 rubygems

Version Path
doorkeeper-5.0.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.1.0.rc2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.1.0.rc1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.0.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-mongodb-5.0.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.0.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-mongodb-4.2.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-2.0.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-1.5.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.4.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.0.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.4.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.4.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.0.0.rc2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.4.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-5.0.0.rc1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-mongodb-4.1.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.3.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.3.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.3.0 spec/support/helpers/access_token_request_helper.rb