Sha256: 423455675fe23182ab30d5b827d8d6eeb8d0fce9d4bdc76c8f2dc336a34151f3

Contents?: true

Size: 385 Bytes

Versions: 26

Compression:

Stored size: 385 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

26 entries across 26 versions & 1 rubygems

Version Path
doorkeeper-1.1.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.0.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.0.0.rc2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-1.0.0.rc1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.7.4 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.7.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.7.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.7.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.7.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.7 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.6 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.5 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.4 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.3 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.2 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.6.0.rc1 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.5.0 spec/support/helpers/access_token_request_helper.rb
doorkeeper-0.5.0.rc1 spec/support/helpers/access_token_request_helper.rb