4e3516788f
FFaker can generate data that randomly break our test suite. This simplifies our factories and use sequences which are more predictive. Signed-off-by: Rémy Coutable <remy@rymai.me>
9 lines
297 B
Ruby
9 lines
297 B
Ruby
FactoryGirl.define do
|
|
factory :oauth_application, class: 'Doorkeeper::Application', aliases: [:application] do
|
|
sequence(:name) { |n| "OAuth App #{n}" }
|
|
uid { Doorkeeper::OAuth::Helpers::UniqueToken.generate }
|
|
redirect_uri { generate(:url) }
|
|
owner
|
|
owner_type 'User'
|
|
end
|
|
end
|