Created
June 21, 2012 12:43
-
-
Save masarakki/2965560 to your computer and use it in GitHub Desktop.
factory_girl for doorkeeper - access_token (NOT COMPLETED)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryGirl.define do | |
factory :access_token, :class => Doorkeeper::AccessToken do | |
resource_owner_id 1 | |
application_id 1 | |
revoked_at nil | |
expires_in 900 | |
trait :limitless do | |
expires_in nil | |
end | |
trait :expired do | |
expires_in -100 | |
end | |
trait :revoked do | |
revoked_at DateTime.yesterday.beginning_of_day | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment