Sha256: 2aa4ea3f1d089da53f44431e7267acdb12a44f7ef3f074449e1915dc92630963

Contents?: true

Size: 360 Bytes

Versions: 22

Compression:

Stored size: 360 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)
    FactoryGirl.create(:access_token, attributes)
  end
end

RSpec.configuration.send :include, AccessTokenRequestHelper

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
doorkeeper-2.2.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.2.0 spec/support/helpers/access_token_request_helper.rb