Sha256: 5e365c3460190b1c38fea317bcfdde18c48f9f54cdf42066ae2b4c3bcb485b77

Contents?: true

Size: 614 Bytes

Versions: 8

Compression:

Stored size: 614 Bytes

Contents

FactoryGirl.define do
  factory :access_grant, class: Doorkeeper::AccessGrant do
    sequence(:resource_owner_id) { |n| n }
    application
    redirect_uri 'https://app.com/callback'
    expires_in 100
    scopes 'public write'
  end

  factory :access_token, class: Doorkeeper::AccessToken do
    sequence(:resource_owner_id) { |n| n }
    application
    expires_in 2.hours

    factory :clientless_access_token do
      application nil
    end
  end

  factory :application, class: Doorkeeper::Application do
    sequence(:name) { |n| "Application #{n}" }
    redirect_uri 'https://app.com/callback'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
doorkeeper-2.1.3 spec/factories.rb
doorkeeper-2.1.2 spec/factories.rb
doorkeeper-2.1.1 spec/factories.rb
doorkeeper-2.1.0 spec/factories.rb
doorkeeper-2.0.1 spec/factories.rb
doorkeeper-2.0.0 spec/factories.rb
doorkeeper-2.0.0.rc3 spec/factories.rb
doorkeeper-2.0.0.rc2 spec/factories.rb