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-sequel-1.3.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-1.3.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-1.2.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-1.2.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.2.6 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.2.5 spec/support/helpers/access_token_request_helper.rb
doorkeeper-sequel-1.2.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.2.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.1.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.0.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.0.0.rc4 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.0.0.rc3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.0.0.rc2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-4.0.0.rc1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-3.1.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-3.0.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-2.2.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-3.0.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-3.0.0.rc2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-3.0.0.rc1 spec/support/helpers/access_token_request_helper.rb