Sha256: 7703fd7801a9952c1d90ed38c5371fb35c223ef0dbe44ba270c3df4d072527ef

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

Stored size: 611 Bytes

Contents

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

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

FactoryGirl.define do
  factory :application, :class => Doorkeeper::Application do
    sequence(:name){ |n| "Application #{n}" }
    redirect_uri "https://example.com/callback"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
garage-doorkeeper-2.0.0 spec/factories/doorkeeper.rb
garage-doorkeeper-1.0.0 spec/factories/doorkeeper.rb