Sha256: bed5a0f6e6c4d0cb0b5fa36ef089aa60219ef31e8f058bb0c8015de3e0125102

Contents?: true

Size: 376 Bytes

Versions: 16

Compression:

Stored size: 376 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, type: :request

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
doorkeeper-2.1.4 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.4.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.1.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.1.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.1.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.1.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.0.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.4.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.0.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.0.0.rc3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.0.0.rc2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.0.0.alpha1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.4.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.3.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.3.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.2.0 spec/support/helpers/access_token_request_helper.rb